RpcFrameException class base
Thrown when an incoming multiplexed frame violates protocol limits or is malformed (oversized declared payload, bad metadata encoding).
Surfaced as a handled, typed error on the incoming stream rather than an uncaught throw into the receive loop's zone. Carries the gRPC status for its KIND, because the three kinds are not one answer: INTERNAL is final, and a limit the sender can correct is RESOURCE_EXHAUSTED, which is retryable.
- Inheritance
-
- Object
- RpcException
- RpcStatusException
- RpcFrameException
Constructors
- RpcFrameException(String message)
- Malformed framing — bad UTF-8, a length past the end, trailing bytes. INTERNAL.
- RpcFrameException.limit(String message)
- A limit the peer can correct by sending less.
- RpcFrameException.policy(String message)
- The peer's metadata failed the configured policy.
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