Enum ethcore::evm::evm::Error [] [src]

pub enum Error {
    OutOfGas,
    BadJumpDestination {
        destination: usize,
    },
    BadInstruction {
        instruction: u8,
    },
    StackUnderflow {
        instruction: &'static str,
        wanted: usize,
        on_stack: usize,
    },
    OutOfStack {
        instruction: &'static str,
        wanted: usize,
        limit: usize,
    },
    Internal,
}

Evm errors.

Variants

OutOfGas is returned when transaction execution runs out of gas. The state should be reverted to the state from before the transaction execution. But it does not mean that transaction was invalid. Balance still should be transfered and nonce should be increased.

BadJumpDestination is returned when execution tried to move to position that wasn't marked with JUMPDEST instruction

Fields

Position the code tried to jump to.

BadInstructions is returned when given instruction is not supported

Fields

Unrecognized opcode

StackUnderflow when there is not enough stack elements to execute instruction

Fields

Invoked instruction

How many stack elements was requested by instruction

How many elements were on stack

When execution would exceed defined Stack Limit

Fields

Invoked instruction

How many stack elements instruction wanted to push

What was the stack limit

Returned on evm internal error. Should never be ignored during development. Likely to cause consensus issues.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl PartialEq for Error
[src]

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

This method tests for !=.

impl Display for Error
[src]

Formats the value using the given formatter.