2021-04-02 11:51:00 +02:00
|
|
|
class ChainQueueException(Exception):
|
2021-08-26 10:05:56 +02:00
|
|
|
"""Base class for chainqueue related exceptions
|
|
|
|
"""
|
2021-04-02 11:51:00 +02:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class NotLocalTxError(ChainQueueException):
|
2021-04-02 10:48:54 +02:00
|
|
|
"""Exception raised when trying to access a tx not originated from a local task
|
|
|
|
"""
|
2021-04-02 14:02:22 +02:00
|
|
|
|
|
|
|
def __init__(self, tx_hash, block=None):
|
|
|
|
super(NotLocalTxError, self).__init__(tx_hash, block)
|
2021-04-02 11:51:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TxStateChangeError(ChainQueueException):
|
|
|
|
"""Raised when an invalid state change of a queued transaction occurs
|
|
|
|
"""
|
|
|
|
pass
|
2021-04-02 14:45:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
class CacheIntegrityError(ChainQueueException):
|
|
|
|
"""Raised when cached data does not match raw transaction data
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
2021-06-01 12:43:12 +02:00
|
|
|
|
2022-04-12 15:44:29 +02:00
|
|
|
class DuplicateTxError(ChainQueueException):
|
|
|
|
"""Backend already knows transaction
|
|
|
|
"""
|
|
|
|
pass
|