from __future__ import annotations

class TxIdError(Exception):
    """Base exception for txidgen."""

class InvalidTxIdError(TxIdError):
    """Raised when an ID cannot be parsed or is malformed."""

class SequenceOverflowError(TxIdError):
    """Raised when too many IDs are generated in the same time slice."""

class UnsupportedCurrencyError(TxIdError):
    """Raised when currency code is not configured."""
