#[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.
source§impl PartialEq for OdraError
impl PartialEq for OdraError
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