chainlib-eth/chainlib/eth/error.py

27 lines
578 B
Python
Raw Normal View History

# local imports
from chainlib.error import ExecutionError
2021-08-21 09:27:40 +02:00
class EthException(Exception):
2021-08-21 09:27:40 +02:00
"""Base class for all Ethereum related errors.
"""
pass
class RevertEthException(EthException, ExecutionError):
2021-08-21 09:27:40 +02:00
"""Raised when an rpc call or transaction reverts.
"""
pass
class NotFoundEthException(EthException):
2021-08-21 09:27:40 +02:00
"""Raised when rpc query is made against an identifier that is not known by the node.
"""
pass
class RequestMismatchException(EthException):
2021-08-21 09:27:40 +02:00
"""Raised when a request data parser is given unexpected input data.
"""
pass