diff --git a/monero/backends/jsonrpc.py b/monero/backends/jsonrpc.py index b142560..9f4a6ae 100644 --- a/monero/backends/jsonrpc.py +++ b/monero/backends/jsonrpc.py @@ -408,6 +408,7 @@ class MethodNotFound(RPCError): _err2exc = { -2: exceptions.WrongAddress, + -4: exceptions.GenericTransferError, -5: exceptions.WrongPaymentId, -8: exceptions.TransactionNotFound, -9: exceptions.SignatureCheckFailed, diff --git a/monero/exceptions.py b/monero/exceptions.py index 389fbb5..2b1bc4e 100644 --- a/monero/exceptions.py +++ b/monero/exceptions.py @@ -41,3 +41,6 @@ class SignatureCheckFailed(MoneroException): class WalletIsNotDeterministic(MoneroException): pass + +class GenericTransferError(AccountException): + pass