[][src]Enum ethcontract::errors::ExecutionError

pub enum ExecutionError {
    Web3(Web3Error),
    AbiDecode(Web3ContractError),
    Parse(ParseIntError),
    NoLocalAccounts,
    Revert(Option<String>),
    InvalidOpcode,
    ConfirmTimeout,
    Failure(Box<TransactionReceipt>),
    UnsupportedToken,
    MissingTransaction(H256),
    PendingTransaction(H256),
}

Error that can occur while executing a contract call or transaction.

Variants

Web3(Web3Error)

An error occured while performing a web3 call.

An error occured while ABI decoding the result of a contract method call.

An error occured while parsing chain ID received from a Web3 call.

NoLocalAccounts

An error indicating that an attempt was made to build or send a locally signed transaction to a node without any local accounts.

Revert(Option<String>)

A contract call reverted.

InvalidOpcode

A contract call executed an invalid opcode.

ConfirmTimeout

A contract transaction failed to confirm within the block timeout limit.

Transaction failure (e.g. out of gas or revert).

UnsupportedToken

A call returned an unsupported token. This happens when using the experimental ABIEncoderV2 option.

This is intended to be implemented in future version of ethcontract.

MissingTransaction(H256)

Failed to find a transaction by hash.

PendingTransaction(H256)

Failed to get a block for a pending transaction that has not yet been mined.

Trait Implementations

impl Debug for ExecutionError[src]

impl Display for ExecutionError[src]

impl Error for ExecutionError[src]

impl From<Error> for ExecutionError[src]

impl From<Error> for ExecutionError[src]

impl From<Error> for ExecutionError[src]

impl From<ExecutionError> for DeployError[src]

impl From<ParseIntError> for ExecutionError[src]

impl From<Web3ContractError> for ExecutionError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,