Types
ApplicationError {....deprecated: "RpcResponseError".} = object of JsonRpcError code*: int data*: Opt[JsonString]
- 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: "RpcResponseError".} = 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
ParamsMismatchError = object of JsonRpcError
- Error raised internally when params fail to match the method signature Source Edit
RequestDecodeError = object of JsonRpcError payload*: seq[byte]
- raised when fail to decode RequestRx Source Edit
ResultDecodeError = object of JsonRpcError result*: JsonString
- raised when failing to decode the response result Source Edit
RpcAddressUnresolvableError = object of JsonRpcError
- Source Edit
RpcApplicationError = object of RpcResponseError
- 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
RpcBindError = object of JsonRpcError
- Source Edit
RpcInternalError = object of RpcResponseError
- Source Edit
RpcInvalidParamsError = object of RpcResponseError
- Source Edit
RpcInvalidRequestError = object of RpcResponseError
- Source Edit
RpcMethodNotFoundError = object of RpcResponseError
- Source Edit
RpcParseError = object of RpcResponseError
- 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
RpcResponseError = object of JsonRpcError origin*: RpcOrigin code*: int data*: JsonString
- Base error for all server error responses Source Edit
RpcServerError = object of RpcResponseError
- 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