2017-11-26 22:22:48 +00:00
|
|
|
class MoneroException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class BackendException(MoneroException):
|
|
|
|
pass
|
|
|
|
|
2018-01-29 09:14:24 +00:00
|
|
|
class NoDaemonConnection(BackendException):
|
|
|
|
pass
|
|
|
|
|
2017-11-26 22:22:48 +00:00
|
|
|
class AccountException(MoneroException):
|
|
|
|
pass
|
|
|
|
|
2017-11-29 03:38:29 +00:00
|
|
|
class WrongAddress(AccountException):
|
|
|
|
pass
|
|
|
|
|
2018-01-11 02:18:22 +00:00
|
|
|
class WrongPaymentId(AccountException):
|
|
|
|
pass
|
|
|
|
|
2017-11-26 22:22:48 +00:00
|
|
|
class NotEnoughMoney(AccountException):
|
|
|
|
pass
|
2017-11-29 03:38:29 +00:00
|
|
|
|
|
|
|
class NotEnoughUnlockedMoney(NotEnoughMoney):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class AmountIsZero(AccountException):
|
|
|
|
pass
|
2018-01-11 05:14:34 +00:00
|
|
|
|
|
|
|
class TransactionNotPossible(AccountException):
|
|
|
|
pass
|
2018-01-15 03:12:53 +00:00
|
|
|
|
|
|
|
class TransactionBroadcastError(BackendException):
|
|
|
|
def __init__(self, message, details=None):
|
|
|
|
self.details = details
|
|
|
|
super(TransactionBroadcastError, self).__init__(message)
|
|
|
|
|
2018-01-22 03:18:00 +00:00
|
|
|
class TransactionNotFound(AccountException):
|
|
|
|
pass
|
2018-10-11 15:19:26 +00:00
|
|
|
|
|
|
|
class SignatureCheckFailed(MoneroException):
|
|
|
|
pass
|
2018-10-18 21:20:27 +00:00
|
|
|
|
|
|
|
class WalletIsNotDeterministic(MoneroException):
|
|
|
|
pass
|