chainlib/chainlib/eth/error.py

24 lines
406 B
Python
Raw Normal View History

2021-04-04 14:55:27 +02:00
# local imports
from chainlib.error import ExecutionError
2021-02-08 10:39:42 +01:00
class EthException(Exception):
pass
2021-04-04 14:55:27 +02:00
class RevertEthException(EthException, ExecutionError):
pass
class NotFoundEthException(EthException):
pass
class RequestMismatchException(EthException):
pass
2021-02-08 10:39:42 +01:00
class DefaultErrorParser:
def translate(self, error):
return EthException('default parser code {}'.format(error))