Recognize payment id exception

This commit is contained in:
Michał Sałaban 2018-01-11 03:18:22 +01:00
parent 66826cd0fb
commit 5b7dd90b9d
2 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,7 @@ class MethodNotFound(RPCError):
_err2exc = { _err2exc = {
-2: exceptions.WrongAddress, -2: exceptions.WrongAddress,
-4: exceptions.NotEnoughUnlockedMoney, -4: exceptions.NotEnoughUnlockedMoney,
-5: exceptions.WrongPaymentId,
-20: exceptions.AmountIsZero, -20: exceptions.AmountIsZero,
-32601: MethodNotFound, -32601: MethodNotFound,
} }

View File

@ -10,6 +10,9 @@ class AccountException(MoneroException):
class WrongAddress(AccountException): class WrongAddress(AccountException):
pass pass
class WrongPaymentId(AccountException):
pass
class NotEnoughMoney(AccountException): class NotEnoughMoney(AccountException):
pass pass