error.py (578B)
1 # local imports 2 from chainlib.error import ExecutionError 3 4 5 class EthException(Exception): 6 """Base class for all Ethereum related errors. 7 """ 8 pass 9 10 11 class RevertEthException(EthException, ExecutionError): 12 """Raised when an rpc call or transaction reverts. 13 """ 14 pass 15 16 17 class NotFoundEthException(EthException): 18 """Raised when rpc query is made against an identifier that is not known by the node. 19 """ 20 pass 21 22 23 class RequestMismatchException(EthException): 24 """Raised when a request data parser is given unexpected input data. 25 """ 26 pass