Recognize "TX not possible" exception

This commit is contained in:
Michał Sałaban 2018-01-11 06:14:34 +01:00
parent 02a599e9ad
commit 0d0cc34353
2 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,7 @@ _err2exc = {
-2: exceptions.WrongAddress, -2: exceptions.WrongAddress,
-4: exceptions.NotEnoughUnlockedMoney, -4: exceptions.NotEnoughUnlockedMoney,
-5: exceptions.WrongPaymentId, -5: exceptions.WrongPaymentId,
-16: exceptions.TransactionNotPossible,
-20: exceptions.AmountIsZero, -20: exceptions.AmountIsZero,
-32601: MethodNotFound, -32601: MethodNotFound,
} }

View File

@ -21,3 +21,6 @@ class NotEnoughUnlockedMoney(NotEnoughMoney):
class AmountIsZero(AccountException): class AmountIsZero(AccountException):
pass pass
class TransactionNotPossible(AccountException):
pass