pub enum ExecutionError {
Show 14 variants Web3(Web3Error), AbiDecode(AbiError), Parse(ParseIntError), NoLocalAccounts, Revert(Option<String>), InvalidOpcode, ConfirmTimeout(Box<TransactionResult>), Failure(Box<TransactionReceipt>), MissingTransaction(H256), PendingTransaction(H256), RemovedLog(Box<Log>), StreamEndedUnexpectedly, Tokenization(Error), UnexpectedTransactionHash,
}
Expand description

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

Variants

Web3(Web3Error)

An error occured while performing a web3 call.

AbiDecode(AbiError)

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

Parse(ParseIntError)

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(Box<TransactionResult>)

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

Failure(Box<TransactionReceipt>)

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

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.

RemovedLog(Box<Log>)

A removed log was received when querying past logs.

StreamEndedUnexpectedly

A stream ended unexpectedly.

Tokenization(Error)

A tokenization related error.

UnexpectedTransactionHash

Unexpected transaction hash

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0:

use the Display impl or to_string()

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more