pub enum UiuaErrorKind {
Load(PathBuf, Arc<Error>),
Format(PathBuf, Arc<Error>),
Parse(Vec<Sp<ParseError>>, Box<Inputs>),
Run {
message: Sp<String, Span>,
info: Vec<Sp<String, Span>>,
inputs: Box<Inputs>,
},
Throw(Box<Value>, Span, Box<Inputs>),
Timeout(Span, Box<Inputs>),
CompilerPanic(String),
Interrupted,
}
Expand description
The kind of an error produced when running/compiling/formatting a Uiua program
Variants§
Load(PathBuf, Arc<Error>)
An error occurred while loading a file
Format(PathBuf, Arc<Error>)
An error occurred while formatting a file
Parse(Vec<Sp<ParseError>>, Box<Inputs>)
An error occurred while parsing a file
Run
An error occurred while compiling or executing a program
Fields
Throw(Box<Value>, Span, Box<Inputs>)
An error thrown by assert
Timeout(Span, Box<Inputs>)
Maximum execution time exceeded
CompilerPanic(String)
The compiler panicked
Interrupted
The program was interrupted
Implementations§
Trait Implementations§
Source§impl Clone for UiuaErrorKind
impl Clone for UiuaErrorKind
Source§fn clone(&self) -> UiuaErrorKind
fn clone(&self) -> UiuaErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UiuaErrorKind
impl Debug for UiuaErrorKind
Source§impl From<UiuaErrorKind> for UiuaError
impl From<UiuaErrorKind> for UiuaError
Source§fn from(kind: UiuaErrorKind) -> Self
fn from(kind: UiuaErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UiuaErrorKind
impl !RefUnwindSafe for UiuaErrorKind
impl Send for UiuaErrorKind
impl Sync for UiuaErrorKind
impl Unpin for UiuaErrorKind
impl !UnwindSafe for UiuaErrorKind
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