Add exception
This commit is contained in:
parent
d44d4fd2ac
commit
e55e2239b1
|
@ -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,
|
||||||
|
|
|
@ -41,3 +41,6 @@ class SignatureCheckFailed(MoneroException):
|
||||||
|
|
||||||
class WalletIsNotDeterministic(MoneroException):
|
class WalletIsNotDeterministic(MoneroException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class GenericTransferError(AccountException):
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue