wownero-python/monero/exceptions.py
2018-10-18 23:20:27 +02:00

43 lines
873 B
Python

class MoneroException(Exception):
pass
class BackendException(MoneroException):
pass
class NoDaemonConnection(BackendException):
pass
class AccountException(MoneroException):
pass
class WrongAddress(AccountException):
pass
class WrongPaymentId(AccountException):
pass
class NotEnoughMoney(AccountException):
pass
class NotEnoughUnlockedMoney(NotEnoughMoney):
pass
class AmountIsZero(AccountException):
pass
class TransactionNotPossible(AccountException):
pass
class TransactionBroadcastError(BackendException):
def __init__(self, message, details=None):
self.details = details
super(TransactionBroadcastError, self).__init__(message)
class TransactionNotFound(AccountException):
pass
class SignatureCheckFailed(MoneroException):
pass
class WalletIsNotDeterministic(MoneroException):
pass