RpcPeerFaultException class final

Raised because the PEER sent something invalid: a second request on a call that carries one, or a payload the request codec could not decode.

The peer is told, with the status the error carries. It is not a fault of this side, so isFaultError reads false and it is not logged as one: a peer repeating the call would otherwise choose how many error records the server writes.

Inheritance

Constructors

RpcPeerFaultException(RpcStatus statusCode, String message)
Creates a peer fault with statusCode and message.

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.Status binary for the grpc-status-details-bin trailer. 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