JSON-RPC 2.0 Protocol
This module contain JSON-RPC 2.0 errors
Contains JSON-RPC 2.0 error codes
Supported JSON-RPC protocol version
Struct describes JSON-RPC 2.0 error object which used in RpcRequest
Example
auto err1 = RpcError(bson); auto err2 = RpcError(RPC_ERROR_CODE.INVALID_PARAMS, "Invalid params"); auto err3 = RpcError(RPC_ERROR_CODE.INVALID_PARAMS, "mycustommessage"); auto err4 = RpcError(RPC_ERROR_CODE.INVALID_PARAMS, "Invalid params", erroData); auto err5 = RpcError(new RpcInvalidParams()); //toJson err2.toJson();
Super class for all JSON-RPC exceptions