Skip to content

cosmpy.aerial.exceptions

Exceptions.

QueryError Objects

class QueryError(RuntimeError)

Invalid Query Error.

NotFoundError Objects

class NotFoundError(QueryError)

Not found Error.

QueryTimeoutError Objects

class QueryTimeoutError(QueryError)

Query timeout Error.

BroadcastError Objects

class BroadcastError(RuntimeError)

Broadcast Error.

__init__

def __init__(tx_hash: str, message: str)

Init Broadcast error.

Arguments:

  • tx_hash: transaction hash
  • message: message

OutOfGasError Objects

class OutOfGasError(BroadcastError)

Insufficient Fess Error.

__init__

def __init__(tx_hash: str, gas_wanted: int, gas_used: int)

Initialize.

Arguments:

  • tx_hash: transaction hash
  • gas_wanted: gas required to complete the transaction
  • gas_used: gas used

InsufficientFeesError Objects

class InsufficientFeesError(BroadcastError)

Insufficient Fess Error.

__init__

def __init__(tx_hash: str, minimum_required_fee: str)

Initialize.

Arguments:

  • tx_hash: transaction hash
  • minimum_required_fee: Minimum required fee