chainsyncer/chainsyncer/error.py

28 lines
515 B
Python
Raw Normal View History

2021-04-04 15:03:58 +02:00
class SyncDone(Exception):
2021-02-03 20:55:39 +01:00
"""Exception raised when a syncing is complete.
"""
pass
2021-04-04 15:03:58 +02:00
class NoBlockForYou(Exception):
2021-08-27 12:43:12 +02:00
"""Exception raised when attempt to retrieve a block from network that does not (yet) exist.
"""
2021-04-04 15:03:58 +02:00
pass
2021-02-03 20:55:39 +01:00
class RequestError(Exception):
2021-08-27 12:43:12 +02:00
"""Base exception for RPC query related errors.
"""
2021-02-03 20:55:39 +01:00
pass
class BackendError(Exception):
2021-08-27 12:43:12 +02:00
"""Base exception for syncer state backend related errors.
"""
pass
2021-08-26 10:09:47 +02:00
2021-08-27 12:43:12 +02:00
#class AbortTx(Exception):
# """
# """
# pass