RPCError class

Implemented types

Constructors

RPCError(String? callingMethod, int code, String message, [Map? data])
RPCError.withDetails(String? callingMethod, int code, String message, {Object? details})

Properties

callingMethod String?
final
code int
final
data Map?
final
details String?
no setter
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
toMap() Map<String, dynamic>
Return a map representation of this error suitable for conversion to json.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(String callingMethod, dynamic json) RPCError

Constants

kInternalError → const int
Internal JSON-RPC error.
kInvalidParams → const int
Invalid method parameter(s), such as a mismatched type.
kInvalidRequest → const int
The JSON sent is not a valid Request object.
kMethodNotFound → const int
The method does not exist or is not available.
kServerError → const int
Application specific error codes.