pub enum ExitError {
Show 15 variants StackUnderflow, StackOverflow, InvalidJump, InvalidRange, DesignatedInvalid, CallTooDeep, CreateCollision, CreateContractLimit, InvalidCode, OutOfOffset, OutOfGas, OutOfFund, PCUnderflow, CreateEmpty, Other(Cow<'static, str>),
}
Expand description

Exit error reason.

Variants

StackUnderflow

Trying to pop from an empty stack.

StackOverflow

Trying to push into a stack over stack limit.

InvalidJump

Jump destination is invalid.

InvalidRange

An opcode accesses memory region, but the region is invalid.

DesignatedInvalid

Encountered the designated invalid opcode.

CallTooDeep

Call stack is too deep (runtime).

CreateCollision

Create opcode encountered collision (runtime).

CreateContractLimit

Create init code exceeds limit (runtime).

InvalidCode

Starting byte must not begin with 0xef. See EIP-3541.

OutOfOffset

An opcode accesses external information, but the request is off offset limit (runtime).

OutOfGas

Execution runs out of gas (runtime).

OutOfFund

Not enough fund to start the execution (runtime).

PCUnderflow

PC underflowed (unused).

CreateEmpty

Attempt to create an empty account (runtime, unused).

Other(Cow<'static, str>)

Other normal errors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

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

This method tests for !=.

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.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

Uses borrowed data to replace owned data, usually by cloning. 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.