2020-06-19 16:33:44 +03:00
|
|
|
type
|
|
|
|
|
JsonRpcError* = object of CatchableError
|
|
|
|
|
## Base type of all nim-json-rpc errors
|
|
|
|
|
|
|
|
|
|
ErrorResponse* = object of JsonRpcError
|
|
|
|
|
## raised when the server responded with an error
|
|
|
|
|
|
|
|
|
|
InvalidResponse* = object of JsonRpcError
|
|
|
|
|
## raised when the server response violates the JSON-RPC protocol
|
|
|
|
|
|
2021-02-15 13:45:51 +01:00
|
|
|
RpcBindError* = object of JsonRpcError
|
|
|
|
|
RpcAddressUnresolvableError* = object of JsonRpcError
|
2021-10-06 10:50:08 +02:00
|
|
|
|
|
|
|
|
InvalidRequest* = object of JsonRpcError
|
|
|
|
|
## This could be raised by request handlers when the server
|
|
|
|
|
## needs to respond with a custom error code.
|
|
|
|
|
code*: int
|