27 lines
578 B
Python
27 lines
578 B
Python
# local imports
|
|
from chainlib.error import ExecutionError
|
|
|
|
|
|
class EthException(Exception):
|
|
"""Base class for all Ethereum related errors.
|
|
"""
|
|
pass
|
|
|
|
|
|
class RevertEthException(EthException, ExecutionError):
|
|
"""Raised when an rpc call or transaction reverts.
|
|
"""
|
|
pass
|
|
|
|
|
|
class NotFoundEthException(EthException):
|
|
"""Raised when rpc query is made against an identifier that is not known by the node.
|
|
"""
|
|
pass
|
|
|
|
|
|
class RequestMismatchException(EthException):
|
|
"""Raised when a request data parser is given unexpected input data.
|
|
"""
|
|
pass
|