#[repr(u8)]pub enum VmException {
Show 15 variants
Ok = 0,
Alternative = 1,
StackUnderflow = 2,
StackOverflow = 3,
IntOverflow = 4,
RangeCheck = 5,
InvalidOpcode = 6,
TypeCheck = 7,
CellOverflow = 8,
CellUnderflow = 9,
DictError = 10,
Unknown = 11,
Fatal = 12,
OutOfGas = 13,
VirtError = 14,
}
Expand description
A code for an execution error.
Variants§
Ok = 0
Alternative = 1
StackUnderflow = 2
StackOverflow = 3
IntOverflow = 4
RangeCheck = 5
InvalidOpcode = 6
TypeCheck = 7
CellOverflow = 8
CellUnderflow = 9
DictError = 10
Unknown = 11
Fatal = 12
OutOfGas = 13
VirtError = 14
Implementations§
Source§impl VmException
impl VmException
pub const fn as_exit_code(&self) -> i32
Trait Implementations§
Source§impl Clone for VmException
impl Clone for VmException
Source§fn clone(&self) -> VmException
fn clone(&self) -> VmException
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 VmException
impl Debug for VmException
Source§impl Display for VmException
impl Display for VmException
Source§impl Ord for VmException
impl Ord for VmException
Source§fn cmp(&self, other: &VmException) -> Ordering
fn cmp(&self, other: &VmException) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VmException
impl PartialEq for VmException
Source§impl PartialOrd for VmException
impl PartialOrd for VmException
impl Copy for VmException
impl Eq for VmException
impl StructuralPartialEq for VmException
Auto Trait Implementations§
impl Freeze for VmException
impl RefUnwindSafe for VmException
impl Send for VmException
impl Sync for VmException
impl Unpin for VmException
impl UnwindSafe for VmException
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