RpcRateLimitException class final
Thrown by RpcRateLimitInterceptor when a call exceeds the configured limit.
RESOURCE_EXHAUSTED, so retry policies can back off and retry. retryAfter
travels as an RpcRetryInfo detail: that pushback is what tells a remote
RpcRetryInterceptor this RESOURCE_EXHAUSTED is transient; a size refusal
has the same status and none.
- Inheritance
-
- Object
- RpcException
- RpcStatusException
- RpcRateLimitException
Constructors
- RpcRateLimitException(String message, {Duration? retryAfter})
- Creates an RpcRateLimitException.
Properties
-
details
→ List<
RpcErrorDetail> -
Structured error details sent via
grpc-status-details-bin.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- isPushback → bool
-
Whether this is the server pushing back: an RpcRateLimitException, or
RESOURCE_EXHAUSTED carrying an RpcRetryInfo.
no setterinherited
- message → String
-
Human-readable description of the error.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → RpcStatus
-
The gRPC status; RpcStatus.code is its number on the wire.
finalinherited
- statusDetailsBin → Uint8List?
-
Encodes details into a
google.rpc.Statusbinary for thegrpc-status-details-bintrailer. Returns null if no details.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited