RpcError class

Constructors

RpcError({required int code, required String message, RpcMeta? data})
Use [] and []= operators to access and modify data
RpcError.fromMeta(RpcMeta meta)
Creates RpcError from meta
factory

Properties

code int
final
data RpcMeta
final
hasData bool
Is this RpcError contains extra data
no setter
hashCode int
The hash code for this object.
no setteroverride
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
toMeta() RpcMeta
Returns RpcMeta from the current RpcError
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override
operator [](String key) → dynamic
operator []=(String key, dynamic value) → void

Constants

kInternalError → const int
kInvalidParams → const int
kInvalidRequest → const int
kMethodNotFound → const int
kParseError → const int