chainqueue/chainqueue/error.py

17 lines
433 B
Python

class ChainQueueException(Exception):
pass
class NotLocalTxError(ChainQueueException):
"""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)
class TxStateChangeError(ChainQueueException):
"""Raised when an invalid state change of a queued transaction occurs
"""
pass