Skip to content

Errors

MoneroError

Bases: Exception

Monero exception.

MoneroRpcError

Bases: RuntimeError

Exception when interacting with the Monero daemon or wallet RPC API.

code: int instance-attribute

JSON-RPC error code

__init__(message, code=-1)

Initialize a new monero rpc error.

Parameters:

Name Type Description Default
message str

rpc error message.

required
code int

rpc error code.

-1