pub enum StackMachineError {
DivisionByZero {
failing_opcode: Opcode,
},
NumericOverflow {
failing_opcode: Opcode,
},
TryFromIntError(TryFromIntError),
NumberStackUnderflow,
LoopStackUnderflow,
ScratchStackUnderflow,
InvalidCellOperation,
UnhandledTrap {
unhandled_trap_id: i64,
},
RanOutOfGas {
gas_used: u64,
gas_limit: GasLimit,
},
UnknownError,
}
Expand description
Errors that can occur during stack machine execution.
Variants§
DivisionByZero
NumericOverflow
TryFromIntError(TryFromIntError)
NumberStackUnderflow
LoopStackUnderflow
ScratchStackUnderflow
InvalidCellOperation
UnhandledTrap
RanOutOfGas
UnknownError
Trait Implementations§
Source§impl Clone for StackMachineError
impl Clone for StackMachineError
Source§fn clone(&self) -> StackMachineError
fn clone(&self) -> StackMachineError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StackMachineError
impl Debug for StackMachineError
Source§impl Display for StackMachineError
impl Display for StackMachineError
Source§impl Error for StackMachineError
impl Error for StackMachineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TryFromIntError> for StackMachineError
impl From<TryFromIntError> for StackMachineError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StackMachineError
impl PartialEq for StackMachineError
impl StructuralPartialEq for StackMachineError
Auto Trait Implementations§
impl Freeze for StackMachineError
impl RefUnwindSafe for StackMachineError
impl Send for StackMachineError
impl Sync for StackMachineError
impl Unpin for StackMachineError
impl UnwindSafe for StackMachineError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more