wownero-python/monero/exceptions.py

35 lines
705 B
Python
Raw Normal View History

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