RpcException class
An exception from a JSON-RPC server that can be translated into an error response.
- Implemented types
 
Constructors
- RpcException(int code, String message, { dynamic data })
 - RpcException.invalidParams(String message)
 - An exception indicating that the parameters for the requested method were invalid. [...]
 - RpcException.methodNotFound(String methodName)
 - 
          An exception indicating that the method named 
methodNamewas not found. [...] 
Properties
- code → int
 - 
          The error code. [...]
          final
 - data → dynamic
 - 
          Extra application-defined information about the error. [...]
          final
 - message → String
 - 
          The error message. [...]
          final
 - hashCode → int
 - 
          The hash code for this object. [...]
          read-only, inherited
 - runtimeType → Type
 - 
          A representation of the runtime type of the object.
          read-only, inherited
 
Methods
- 
          serialize(
dynamic request) → dynamic  - Converts this exception into a JSON-serializable object that's a valid JSON-RPC 2.0 error response.
 - 
          toString(
) → String  - 
          Returns a string representation of this object.
          override
 - 
          noSuchMethod(
Invocation invocation) → dynamic  - 
          Invoked when a non-existent method or property is accessed. [...]
          inherited
 
Operators
- 
          operator ==(
dynamic other) → bool  - 
          The equality operator. [...]
          inherited