Types
ApplicationError = object of JsonRpcError code*: int data*: Opt[JsonString]
- Error to be raised by the application request handlers when the server needs to respond with a custom application error. The error code should be outside the range of -32768 to -32000. A custom JSON data object may be provided. Source Edit
ErrorResponse = object of RpcTransportError status*: int ## Raised when the server responds with a HTTP-style error status code ## indicating that the call was not processed
- Source Edit
FailedHttpResponse {....deprecated: "RpcTransportError".} = RpcTransportError
- Obsolete name for RpcTransportError Source Edit
InvalidRequest {....deprecated: "ApplicationError".} = ApplicationError
- Source Edit
InvalidResponse = object of JsonRpcError payload*: seq[byte]
- raised when the server response violates the JSON-RPC protocol Source Edit
JsonRpcError = object of CatchableError
- Base type of all nim-json-rpc errors Source Edit
RequestDecodeError = object of JsonRpcError payload*: seq[byte]
- raised when fail to decode RequestRx Source Edit
RpcAddressUnresolvableError = object of JsonRpcError
- Source Edit
RpcBindError = object of JsonRpcError
- Source Edit
RpcPostError = object of RpcTransportError
- raised when the underlying transport fails to send the request - the underlying client may or may not have received the request Source Edit
RpcTransportError = object of JsonRpcError
- Raised when there is an issue with the underlying transport - the parent exception may be set to provide more information Source Edit