RpcError class

Implemented types

Constructors

RpcError({required String message, required int code, String? data})
RpcError.fromProto(RpcError error)
factory

Properties

code → int
final
data → String?
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
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
toProto() → RpcError
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

applicationError → int
final
connectionTimeout → int
final
errorMessages ↔ Map<int, String>
getter/setter pair
recipientDisconnected → int
final
recipientNotFound → int
final
requestPayloadTooLarge → int
final
responsePayloadTooLarge → int
final
responseTimeout → int
final
sendFailed → int
final
unsupportedMethod → int
final
unsupportedServer → int
final
unsupportedVersion → int
final

Static Methods

builtIn(int errorCode, {String? data}) → RpcError
Creates an error object from the code, with an auto-populated message.