jsonrpcserver

Exceptions

Exceptions raised by jsonrpcserver.

exception ParseError(data=None)

Raised when the request is not a valid JSON object.

code = -32700
message = 'Parse error'
http_status = 400
exception InvalidRequest(data=None)

Raised when the request is not a valid JSON-RPC object.

Parameters:data – Extra information about the error that occurred (optional).
code = -32600
message = 'Invalid Request'
http_status = 400
exception MethodNotFound(data=None)

Raised when the method does not exist/is not available.

Parameters:data – Extra information about the error that occurred (optional).
code = -32601
message = 'Method not found'
http_status = 404
exception InvalidParams(data=None)

Raised when invalid arguments are passed to a method.

Parameters:data – Extra information about the error that occurred (optional).
code = -32602
message = 'Invalid params'
http_status = 400
exception ServerError(data=None)

Raised when there’s an application-specific error on the server side.

Parameters:data – Extra information about the error that occurred (optional).
code = -32000
message = 'Server error'
http_status = 500