#[repr(u16)]pub enum OdraError {
ExecutionError(ExecutionError),
VmError(VmError),
}Expand description
General error type in Odra framework
Variants§
ExecutionError(ExecutionError)
An error that can occur during smart contract execution
VmError(VmError)
An internal virtual machine error
Implementations§
Trait Implementations§
Source§impl From<AddressError> for OdraError
impl From<AddressError> for OdraError
Source§fn from(error: AddressError) -> Self
fn from(error: AddressError) -> Self
Converts to this type from the input type.
Source§impl From<ArithmeticsError> for OdraError
impl From<ArithmeticsError> for OdraError
Source§fn from(error: ArithmeticsError) -> Self
fn from(error: ArithmeticsError) -> Self
Converts to this type from the input type.
Source§impl From<CLValueError> for OdraError
impl From<CLValueError> for OdraError
Source§fn from(error: CLValueError) -> Self
fn from(error: CLValueError) -> Self
Converts to this type from the input type.
Source§impl From<CollectionError> for OdraError
impl From<CollectionError> for OdraError
Source§fn from(error: CollectionError) -> Self
fn from(error: CollectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OdraError
impl From<Error> for OdraError
Source§fn from(error: BytesReprError) -> Self
fn from(error: BytesReprError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for OdraError
impl From<ExecutionError> for OdraError
Source§fn from(error: ExecutionError) -> Self
fn from(error: ExecutionError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for OdraError
Auto Trait Implementations§
impl Freeze for OdraError
impl RefUnwindSafe for OdraError
impl Send for OdraError
impl Sync for OdraError
impl Unpin for OdraError
impl UnwindSafe for OdraError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more