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 = {
-2: exceptions.WrongAddress,
-4: exceptions.NotEnoughUnlockedMoney,
-5: exceptions.WrongPaymentId,
-20: exceptions.AmountIsZero,
-32601: MethodNotFound,
}

View file

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