Base exception for the RPC core.
Abstract, and that is the point. A bare RpcException said only "some
rpc_dart error", and wireStatusFor had to answer it with INTERNAL — so
every throw site that did not classify itself became INTERNAL on the wire,
including limits a peer could have corrected and methods that do not
exist. And since RpcException is the BASE, an is RpcException check
meant to identify a KIND matched everything.
Throw RpcStatusException with the status that fits, or a subclass that picks one for you (RpcFrameException, RpcMetadataViolationException, RpcCancelledException, RpcDeadlineExceededException).
Still the type to CATCH: e is RpcException remains the one check that
means "this came from rpc_dart".
- Implemented types
- Implementers
Constructors
- RpcException(String message)
-
Creates an RpcException with the given
message.const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited