from __future__ import annotations
[docs]class MaticException(Exception):
"""Base exception class for this library."""
[docs]class AllowedOnRootException(MaticException):
"""The action is allowed only on root token."""
[docs]class AllowedOnChildException(MaticException):
"""The action is allowed only on child token."""
[docs]class ProofAPINotSetException(MaticException):
"""Proof api is not set."""
[docs]class BurnTxNotCheckPointedException(MaticException):
"""Burn transaction has not been checkpointed as yet."""
[docs]class EIP1559NotSupportedException(MaticException):
"""The chain doesn't support EIP-1559."""
[docs]class NullSpenderAddressException(MaticException):
"""Please provide spender address."""