RPCError class Null safety

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?
read-only
hashCode int
The hash code for this object.
read-onlyinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Return a map representation of this error suitable for converstion 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.
-32603
kInvalidParams → const int
Invalid method parameter(s), such as a mismatched type.
-32602
kInvalidRequest → const int
The JSON sent is not a valid Request object.
-32600
kMethodNotFound → const int
The method does not exist or is not available.
-32601
kServerError → const int
Application specific error codes.
-32000