Enum near_vm_errors::VMLogicError
source · [−]pub enum VMLogicError {
HostError(HostError),
ExternalError(AnyError),
InconsistentStateError(InconsistentStateError),
}
Variants
HostError(HostError)
Errors coming from native Wasm VM.
ExternalError(AnyError)
Type erased error from External
trait implementation.
InconsistentStateError(InconsistentStateError)
An error that is caused by an operation on an inconsistent state.
Trait Implementations
sourceimpl Debug for VMLogicError
impl Debug for VMLogicError
sourceimpl Display for VMLogicError
impl Display for VMLogicError
sourceimpl Error for VMLogicError
impl Error for VMLogicError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<HostError> for VMLogicError
impl From<HostError> for VMLogicError
sourceimpl From<InconsistentStateError> for VMLogicError
impl From<InconsistentStateError> for VMLogicError
sourcefn from(err: InconsistentStateError) -> Self
fn from(err: InconsistentStateError) -> Self
Converts to this type from the input type.
sourceimpl From<VMLogicError> for VMError
impl From<VMLogicError> for VMError
sourcefn from(err: VMLogicError) -> Self
fn from(err: VMLogicError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<VMLogicError> for VMLogicError
impl PartialEq<VMLogicError> for VMLogicError
sourcefn eq(&self, other: &VMLogicError) -> bool
fn eq(&self, other: &VMLogicError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VMLogicError) -> bool
fn ne(&self, other: &VMLogicError) -> bool
This method tests for !=
.
impl StructuralPartialEq for VMLogicError
Auto Trait Implementations
impl !RefUnwindSafe for VMLogicError
impl Send for VMLogicError
impl Sync for VMLogicError
impl Unpin for VMLogicError
impl !UnwindSafe for VMLogicError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more