chainqueue/chainqueue/error.py

17 lines
433 B
Python
Raw Normal View History

2021-04-02 11:51:00 +02:00
class ChainQueueException(Exception):
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
"""
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