WalletConnectException class
An exception from a JSON-RPC server that can be translated into an error response.
- Implemented types
Constructors
- WalletConnectException(String message, {int code = 0, dynamic data})
- WalletConnectException.invalidParams(String message)
- An exception indicating that the parameters for the requested method were invalid.
- WalletConnectException.methodNotFound(String methodName)
-
An exception indicating that the method named
methodName
was not found.
Properties
- code → int
-
The error code.
final
- data → dynamic
-
Extra application-defined information about the error.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The error message.
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
-
serialize(
dynamic request) → Map< String, dynamic> - Converts this exception into a JSON-serializable object that's a valid JSON-RPC 2.0 error response.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited