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
|
|
|
|
|
2022-03-17 23:07:19 +01:00
|
|
|
|
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
|
2021-02-18 23:55:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
class BackendError(Exception):
|
2021-08-27 12:43:12 +02:00
|
|
|
"""Base exception for syncer state backend related errors.
|
|
|
|
"""
|
2021-02-18 23:55:49 +01:00
|
|
|
pass
|
2021-08-26 10:09:47 +02:00
|
|
|
|
|
|
|
|
2021-09-26 19:32:08 +02:00
|
|
|
class LockError(Exception):
|
|
|
|
"""Base exception for attempting to manipulate a locked property
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2022-03-17 23:07:19 +01:00
|
|
|
class FilterDone(Exception):
|
|
|
|
"""Exception raised when all registered filters have been executed
|
|
|
|
"""
|
2022-04-30 09:35:08 +02:00
|
|
|
pass
|
2022-03-17 23:07:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
class InterruptError(FilterDone):
|
|
|
|
"""Exception for interrupting or attempting to use an interrupted sync
|
|
|
|
"""
|
2022-04-30 09:35:08 +02:00
|
|
|
pass
|
2022-03-17 23:07:19 +01:00
|
|
|
|
|
|
|
|
|
|
|
class IncompleteFilterError(Exception):
|
|
|
|
"""Exception raised if filter reset is executed prematurely
|
|
|
|
"""
|
2022-04-30 09:35:08 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class FilterInitializationError(BackendError):
|
|
|
|
"""Exception raised if filter state does not match the registered filters
|
|
|
|
"""
|
|
|
|
pass
|
2022-03-17 23:07:19 +01:00
|
|
|
|
2021-08-27 12:43:12 +02:00
|
|
|
#class AbortTx(Exception):
|
|
|
|
# """
|
|
|
|
# """
|
|
|
|
# pass
|