2021-02-01 18:12:51 +01:00
|
|
|
class TokenCountError(Exception):
|
|
|
|
"""Exception raised when wrong number of tokens have been given to a task
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class PermanentTxError(Exception):
|
|
|
|
"""Exception raised when encountering a permanent error when sending a tx.
|
|
|
|
|
|
|
|
- wrong nonce
|
|
|
|
- insufficient balance
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class TemporaryTxError(Exception):
|
|
|
|
"""Exception raised when encountering a permanent error when sending a tx.
|
|
|
|
|
|
|
|
- blockchain node connection
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
class OutOfGasError(Exception):
|
|
|
|
"""Exception raised when a transaction task must yield pending gas refill for an account
|
|
|
|
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class AlreadyFillingGasError(Exception):
|
|
|
|
"""Exception raised when additional gas refills are issued while one is still in progress
|
|
|
|
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class InitializationError(Exception):
|
|
|
|
"""Exception raised when initialization state is insufficient to run component
|
|
|
|
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class RoleMissingError(Exception):
|
|
|
|
"""Exception raised when web3 action attempted without an address with access to sign for it
|
|
|
|
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-03-06 18:55:51 +01:00
|
|
|
class IntegrityError(Exception):
|
|
|
|
"""Exception raised to signal irregularities with deduplication and ordering of tasks
|
|
|
|
|
|
|
|
"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2021-02-01 18:12:51 +01:00
|
|
|
class LockedError(Exception):
|
|
|
|
"""Exception raised when attempt is made to execute action that is deactivated by lock
|
|
|
|
|
|
|
|
"""
|
|
|
|
pass
|
2021-03-07 14:51:59 +01:00
|
|
|
|
|
|
|
|
2021-04-24 19:53:45 +02:00
|
|
|
class SeppukuError(Exception):
|
|
|
|
"""Exception base class for all errors that should cause system shutdown
|
2021-03-07 14:51:59 +01:00
|
|
|
|
|
|
|
"""
|
2021-03-07 19:01:44 +01:00
|
|
|
|
|
|
|
|
2021-04-24 19:53:45 +02:00
|
|
|
class SignerError(SeppukuError):
|
|
|
|
"""Exception raised when signer is unavailable or generates an error
|
2021-03-07 19:01:44 +01:00
|
|
|
|
|
|
|
"""
|
|
|
|
pass
|
2021-04-24 19:53:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
class RoleAgencyError(SeppukuError):
|
|
|
|
"""Exception raise when a role cannot perform its function. This is a critical exception
|
|
|
|
"""
|
2021-06-30 20:15:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
class YouAreBrokeError(Exception):
|
|
|
|
"""Exception raised when a value transfer is attempted without access to sufficient funds
|
|
|
|
"""
|
2021-10-08 18:39:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
class TrustError(Exception):
|
|
|
|
"""Exception raised when required trust proofs are missing for a request
|
|
|
|
"""
|