[][src]Enum evm::errors::OnChainError

pub enum OnChainError {
    StackOverflow,
    StackUnderflow,
    InvalidOpcode,
    BadJumpDest,
    PCOverflow,
    EmptyGas,
    InvalidRange,
    NotStatic,
    Revert,
}

Errors that can be written on chain.

Variants

StackOverflow

Stack is overflowed (pushed more than 1024 items to the stack).

StackUnderflow

Stack is underflowed (poped an empty stack).

InvalidOpcode

The opcode is invalid and the PC is not able to convert it to an instruction.

BadJumpDest

PC jumped to an invalid jump destination.

PCOverflow

PC overflowed (tries to read the next opcode which is already the end of the code). In Yellow Paper, this is categorized the same as InvalidOpcode.

EmptyGas

Not enough gas to continue.

InvalidRange

For instruction that requires reading a range, it is invalid. This in the Yellow Paper is covered by EmptyGas.

NotStatic

In static context but does mutation.

Revert

Invoked by REVERT opcode.

Trait Implementations

impl From<OnChainError> for RuntimeError
[src]

impl From<OnChainError> for EvalOnChainError
[src]

impl From<OnChainError> for EvalError
[src]

impl PartialEq<OnChainError> for OnChainError
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for OnChainError
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for OnChainError
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Same for T

type Output = T

Should always be Self