mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-24 18:28:10 +00:00
18 lines
575 B
Nim
18 lines
575 B
Nim
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
|
|
|
|
RpcBindError* = object of JsonRpcError
|
|
RpcAddressUnresolvableError* = object of JsonRpcError
|
|
|
|
InvalidRequest* = object of JsonRpcError
|
|
## This could be raised by request handlers when the server
|
|
## needs to respond with a custom error code.
|
|
code*: int
|