wownero-python/monero/exceptions.py
2018-01-29 10:14:24 +01:00

37 lines
759 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