RpcException class abstract base

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

hashCode → int
The hash code for this object.
no setterinherited
message → String
Human-readable description of the error.
final
runtimeType → Type
A representation of the runtime type of the object.
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.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited