RuntimeException class
Remote facility to communicate application-level response-side exceptions.
If an application-level server-side exception should be handled on the
client side, we can send this info back to the client with an error code,
a message, and/or useful data. Look for checkResponse
in client
JSON-RPC v2 implementation. Make sure that data is json-encodable, if you
want to send it.
- Inheritance
-
- Object
- RpcException
- RuntimeException
Constructors
- RuntimeException(String message, [dynamic code = -32000, dynamic data])
- maybe include some useful data
-
RuntimeException.fromJson(Map<
String, dynamic> e)
Properties
- code ↔ int
-
maybe an identifying code
getter/setter pairinherited
- data ↔ dynamic
-
maybe useful data
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String
-
maybe a helpful message
getter/setter pairinherited
- 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
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited