wownero-python/monero/exceptions.py
2018-01-15 04:12:53 +01:00

32 lines
651 B
Python

class MoneroException(Exception):
pass
class BackendException(MoneroException):
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)