funga/crypto_dev_signer/error.py

25 lines
342 B
Python
Raw Normal View History

2020-12-25 09:21:09 +01:00
class UnknownAccountError(Exception):
pass
2021-01-09 22:05:24 +01:00
class TransactionRevertError(Exception):
pass
class NetworkError(Exception):
pass
class SignerError(Exception):
def __init__(self, s):
super(SignerError, self).__init__(s)
self.jsonrpc_error = s
def to_jsonrpc(self):
return self.jsonrpc_error