chainlib/chainlib/eth/error.py

13 lines
221 B
Python
Raw Normal View History

2021-02-08 10:39:42 +01:00
class EthException(Exception):
pass
class RevertEthException(EthException):
pass
2021-02-08 10:39:42 +01:00
class DefaultErrorParser:
def translate(self, error):
return EthException('default parser code {}'.format(error))