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
-
- Object
- RpcException
- RpcStatusException
- RpcPeerFaultException
Constructors
- RpcPeerFaultException(RpcStatus statusCode, String message)
-
Creates a peer fault with
statusCodeandmessage.
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