Recognize "TX not possible" exception
This commit is contained in:
parent
02a599e9ad
commit
0d0cc34353
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,3 +21,6 @@ class NotEnoughUnlockedMoney(NotEnoughMoney):
|
||||||
|
|
||||||
class AmountIsZero(AccountException):
|
class AmountIsZero(AccountException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class TransactionNotPossible(AccountException):
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue