Enum linera_execution::ExecutionError
source · pub enum ExecutionError {
Show 18 variants
ViewError(ViewError),
ArithmeticError(ArithmeticError),
SystemError(SystemExecutionError),
UserError(String),
WasmError(WasmExecutionError),
JoinError(JoinError),
InvalidPromise,
InvalidSession(SessionId),
SessionIsInUse(SessionId),
SessionStateNotLocked(SessionId),
InvalidSessionOwner {
session_id: Box<SessionId>,
accessed_by: Box<UserApplicationId>,
owned_by: Box<UserApplicationId>,
},
SessionWasNotClosed(SessionId),
ReentrantCall(UserApplicationId),
ApplicationBytecodeNotFound(Box<UserApplicationDescription>),
ExcessiveRead,
ExcessiveWrite,
MissingRuntimeResponse,
InvalidBytecodeId(BytecodeId),
}Expand description
A type for errors happening during execution.
Variants§
ViewError(ViewError)
ArithmeticError(ArithmeticError)
SystemError(SystemExecutionError)
UserError(String)
WasmError(WasmExecutionError)
JoinError(JoinError)
InvalidPromise
InvalidSession(SessionId)
SessionIsInUse(SessionId)
SessionStateNotLocked(SessionId)
InvalidSessionOwner
SessionWasNotClosed(SessionId)
ReentrantCall(UserApplicationId)
ApplicationBytecodeNotFound(Box<UserApplicationDescription>)
ExcessiveRead
ExcessiveWrite
MissingRuntimeResponse
InvalidBytecodeId(BytecodeId)
Trait Implementations§
source§impl Debug for ExecutionError
impl Debug for ExecutionError
source§impl Display for ExecutionError
impl Display for ExecutionError
source§impl Error for ExecutionError
impl Error for ExecutionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ArithmeticError> for ExecutionError
impl From<ArithmeticError> for ExecutionError
source§fn from(source: ArithmeticError) -> Self
fn from(source: ArithmeticError) -> Self
Converts to this type from the input type.
source§impl From<ExecutionError> for RuntimeError
impl From<ExecutionError> for RuntimeError
source§fn from(error: ExecutionError) -> Self
fn from(error: ExecutionError) -> Self
Converts to this type from the input type.
source§impl From<JoinError> for ExecutionError
impl From<JoinError> for ExecutionError
source§impl From<RuntimeError> for ExecutionError
impl From<RuntimeError> for ExecutionError
source§impl From<SystemExecutionError> for ExecutionError
impl From<SystemExecutionError> for ExecutionError
source§fn from(source: SystemExecutionError) -> Self
fn from(source: SystemExecutionError) -> Self
Converts to this type from the input type.
source§impl From<ViewError> for ExecutionError
impl From<ViewError> for ExecutionError
source§impl From<WasmExecutionError> for ExecutionError
impl From<WasmExecutionError> for ExecutionError
source§fn from(source: WasmExecutionError) -> Self
fn from(source: WasmExecutionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionError
impl Send for ExecutionError
impl Sync for ExecutionError
impl Unpin for ExecutionError
impl !UnwindSafe for ExecutionError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn