pub enum VMError {
InvalidBytecode(String),
ExecutionLimitExceeded {
max_steps: u64,
actual_steps: u64,
},
StateNotFound {
state_ref: StateRef,
},
InconsistentOutput(String),
InvalidSignature(String),
SealReplay {
seal: SealRef,
},
SchemaViolation(String),
ExecutionError(String),
}Expand description
Errors that can occur during VM execution
Variants§
InvalidBytecode(String)
Bytecode is malformed or invalid
ExecutionLimitExceeded
Execution ran out of steps (loop detection / gas limit)
StateNotFound
A state input referenced in the transition was not found
InconsistentOutput(String)
The VM produced inconsistent output (e.g., negative supply)
InvalidSignature(String)
Signature verification failed
SealReplay
Seal was already consumed (replay detected)
SchemaViolation(String)
Schema validation failed
ExecutionError(String)
Generic execution error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VMError
impl RefUnwindSafe for VMError
impl Send for VMError
impl Sync for VMError
impl Unpin for VMError
impl UnsafeUnpin for VMError
impl UnwindSafe for VMError
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