Enum ethcore::executed::ExecutionError [] [src]

pub enum ExecutionError {
    NotEnoughBaseGas {
        required: U256,
        got: U256,
    },
    BlockGasLimitReached {
        gas_limit: U256,
        gas_used: U256,
        gas: U256,
    },
    InvalidNonce {
        expected: U256,
        got: U256,
    },
    NotEnoughCash {
        required: U512,
        got: U512,
    },
    MutableCallInStaticContext,
    SenderMustExist,
    Internal(String),
    TransactionMalformed(String),
}

Result of executing the transaction.

Variants

Returned when there gas paid for transaction execution is lower than base gas required.

Fields of NotEnoughBaseGas

Absolute minimum gas required.

Gas provided.

Returned when block (gas_used + gas) > gas_limit.

If gas =< gas_limit, upstream may try to execute the transaction in next block.

Fields of BlockGasLimitReached

Gas limit of block for transaction.

Gas used in block prior to transaction.

Amount of gas in block.

Returned when transaction nonce does not match state nonce.

Fields of InvalidNonce

Nonce expected.

Nonce found.

Returned when cost of transaction (value + gas_price * gas) exceeds current sender balance.

Fields of NotEnoughCash

Minimum required balance.

Actual balance.

When execution tries to modify the state in static context

Returned when transacting from a non-existing account with dust protection enabled.

Returned when internal evm error occurs.

Returned when generic transaction occurs

Trait Implementations

impl From<ExecutionError> for Error

Error concerning EVM code execution.

Performs the conversion.

impl PartialEq for ExecutionError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ExecutionError
[src]

Formats the value using the given formatter. Read more

impl Clone for ExecutionError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Box<TrieError>> for ExecutionError
[src]

Performs the conversion.

impl Display for ExecutionError
[src]

Formats the value using the given formatter. Read more

impl Error for ExecutionError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<ExecutionError> for CallError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ExecutionError

impl Sync for ExecutionError