[docs]class CoinHandlerException(Exception):
"""Base exception for all Coin handler exceptions to inherit"""
pass
[docs]class TokenNotFound(CoinHandlerException):
"""The token/coin requested doesn't exist"""
pass
[docs]class AccountNotFound(CoinHandlerException):
"""The sending or receiving account requested doesn't exist"""
pass
[docs]class NotEnoughBalance(CoinHandlerException):
"""The sending account does not have enough balance for this operation"""
pass
[docs]class AuthorityMissing(CoinHandlerException):
"""Missing private key or other authorization for this operation"""
pass
[docs]class IssueNotSupported(CoinHandlerException):
"""This class does not support issuing, the token name cannot be issued, or other issue problems."""
pass
[docs]class IssuerKeyError(AuthorityMissing):
"""Attempted to issue tokens you don't have the issuer key for"""
pass
[docs]class DeadAPIError(CoinHandlerException):
"""A main API, e.g. a coin daemon or public node used by this coin handler is offline."""
pass