Add exception

This commit is contained in:
Michał Sałaban 2019-09-14 00:34:25 +02:00
parent d44d4fd2ac
commit e55e2239b1
2 changed files with 4 additions and 0 deletions

View File

@ -408,6 +408,7 @@ class MethodNotFound(RPCError):
_err2exc = { _err2exc = {
-2: exceptions.WrongAddress, -2: exceptions.WrongAddress,
-4: exceptions.GenericTransferError,
-5: exceptions.WrongPaymentId, -5: exceptions.WrongPaymentId,
-8: exceptions.TransactionNotFound, -8: exceptions.TransactionNotFound,
-9: exceptions.SignatureCheckFailed, -9: exceptions.SignatureCheckFailed,

View File

@ -41,3 +41,6 @@ class SignatureCheckFailed(MoneroException):
class WalletIsNotDeterministic(MoneroException): class WalletIsNotDeterministic(MoneroException):
pass pass
class GenericTransferError(AccountException):
pass