Struct runtime::error::RuntimeError
source · [−]pub struct RuntimeError {
pub err: RuntimeErrorType,
pub help: String,
pub symbols: Vec<DebugSymbol>,
}
Expand description
An error from a computation on the technetium runtime
Fields
err: RuntimeErrorType
help: String
A short description helping diagnose what caused the error
symbols: Vec<DebugSymbol>
The segment trace of user code where the error occured
Implementations
sourceimpl RuntimeError
impl RuntimeError
pub fn type_error<S: ToString>(message: S) -> Self
pub fn attribute_error<S: ToString>(message: S) -> Self
pub fn key_error<S: ToString>(message: S) -> Self
pub fn internal_error<S: ToString>(message: S) -> Self
pub fn variable_undefined_error<S: ToString>(message: S) -> Self
pub fn index_oob_error<S: ToString>(message: S) -> Self
pub fn index_too_big_error<S: ToString>(message: S) -> Self
pub fn child_process_error<S: ToString>(message: S) -> Self
pub fn assertion_error<S: ToString>(message: Option<S>) -> Self
sourcepub fn attach_span(self, debug: DebugSymbol) -> Self
pub fn attach_span(self, debug: DebugSymbol) -> Self
Attach a code location to an error, for reporting diagnostics to the user
sourcepub fn as_diagnostic(&self) -> Diagnostic<FileId>
pub fn as_diagnostic(&self) -> Diagnostic<FileId>
Create a diagnostic message from an error, for reporting to the user
pub fn stack_trace(&self, files: &Files<Cow<'_, str>>) -> Vec<String>
Trait Implementations
sourceimpl Clone for RuntimeError
impl Clone for RuntimeError
sourcefn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RuntimeError
impl Debug for RuntimeError
sourceimpl Display for RuntimeError
impl Display for RuntimeError
sourceimpl From<BorrowError> for RuntimeError
impl From<BorrowError> for RuntimeError
sourcefn from(error: BorrowError) -> Self
fn from(error: BorrowError) -> Self
Performs the conversion.
sourceimpl From<BorrowMutError> for RuntimeError
impl From<BorrowMutError> for RuntimeError
sourcefn from(error: BorrowMutError) -> Self
fn from(error: BorrowMutError) -> Self
Performs the conversion.
sourceimpl From<BorrowMutError> for RuntimeError
impl From<BorrowMutError> for RuntimeError
sourcefn from(error: BorrowMutError) -> Self
fn from(error: BorrowMutError) -> Self
Performs the conversion.
sourceimpl From<Error> for RuntimeError
impl From<Error> for RuntimeError
sourceimpl From<OpenError> for RuntimeError
impl From<OpenError> for RuntimeError
sourceimpl<T> From<PoisonError<T>> for RuntimeError
impl<T> From<PoisonError<T>> for RuntimeError
sourcefn from(error: PoisonError<T>) -> Self
fn from(error: PoisonError<T>) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more