Add new RPC error code pending as PR

This commit is contained in:
Michał Sałaban 2018-10-18 23:20:27 +02:00
parent 915590780f
commit d0dd554e38
2 changed files with 6 additions and 2 deletions

View File

@ -361,7 +361,8 @@ _err2exc = {
-16: exceptions.TransactionNotPossible, -16: exceptions.TransactionNotPossible,
-17: exceptions.NotEnoughMoney, -17: exceptions.NotEnoughMoney,
-20: exceptions.AmountIsZero, -20: exceptions.AmountIsZero,
-37: exceptions.NotEnoughUnlockedMoney, # PR pending: https://github.com/monero-project/monero/pull/3197 -37: exceptions.NotEnoughUnlockedMoney,
-38: exceptions.NoDaemonConnection, # PR 3197 -38: exceptions.NoDaemonConnection,
-43: exceptions.WalletIsNotDeterministic, # https://github.com/monero-project/monero/pull/4653
-32601: MethodNotFound, -32601: MethodNotFound,
} }

View File

@ -38,3 +38,6 @@ class TransactionNotFound(AccountException):
class SignatureCheckFailed(MoneroException): class SignatureCheckFailed(MoneroException):
pass pass
class WalletIsNotDeterministic(MoneroException):
pass