Enum common_types::errors::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),
}

Error type for executing a transaction.

Variants

NotEnoughBaseGas

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

Fields of NotEnoughBaseGas

required: U256

Absolute minimum gas required.

got: U256

Gas provided.

BlockGasLimitReached

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: U256

Gas limit of block for transaction.

gas_used: U256

Gas used in block prior to transaction.

gas: U256

Amount of gas in block.

InvalidNonce

Returned when transaction nonce does not match state nonce.

Fields of InvalidNonce

expected: U256

Nonce expected.

got: U256

Nonce found.

NotEnoughCash

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

Fields of NotEnoughCash

required: U512

Minimum required balance.

got: U512

Actual balance.

MutableCallInStaticContext

When execution tries to modify the state in static context

SenderMustExist

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

Internal(String)

Returned when internal vvm error occurs.

TransactionMalformed(String)

Returned when generic transaction occurs

Trait Implementations

impl Clone for ExecutionError[src]

impl Debug for ExecutionError[src]

impl Display for ExecutionError[src]

impl Error for ExecutionError[src]

impl From<Box<TrieError<H256, DecoderError>, Global>> for ExecutionError[src]

impl From<ExecutionError> for VapcoreError[src]

impl From<ExecutionError> for CallError[src]

impl From<TrieError<H256, DecoderError>> for ExecutionError[src]

impl PartialEq<ExecutionError> for ExecutionError[src]

impl StructuralPartialEq 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> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,