pub enum IsolateError {
LexerError {
source: LexerError,
},
ParserError {
source: ParserError,
},
CompilerError {
source: CompilerError,
},
VMError {
source: VMError,
},
ValueCastError,
ReferenceError,
MissingContextReference,
}
Expand description
Errors which happen within isolate or during evaluation
Variants§
LexerError
Fields
§
source: LexerError
ParserError
Fields
§
source: ParserError
CompilerError
Fields
§
source: CompilerError
VMError
ValueCastError
ReferenceError
MissingContextReference
Trait Implementations§
Source§impl Debug for IsolateError
impl Debug for IsolateError
Source§impl Display for IsolateError
impl Display for IsolateError
Source§impl Error for IsolateError
impl Error for IsolateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<CompilerError> for IsolateError
impl From<CompilerError> for IsolateError
Source§fn from(source: CompilerError) -> Self
fn from(source: CompilerError) -> Self
Converts to this type from the input type.
Source§impl From<LexerError> for IsolateError
impl From<LexerError> for IsolateError
Source§fn from(source: LexerError) -> Self
fn from(source: LexerError) -> Self
Converts to this type from the input type.
Source§impl From<ParserError> for IsolateError
impl From<ParserError> for IsolateError
Source§fn from(source: ParserError) -> Self
fn from(source: ParserError) -> Self
Converts to this type from the input type.
Source§impl From<VMError> for IsolateError
impl From<VMError> for IsolateError
Auto Trait Implementations§
impl Freeze for IsolateError
impl RefUnwindSafe for IsolateError
impl Send for IsolateError
impl Sync for IsolateError
impl Unpin for IsolateError
impl UnwindSafe for IsolateError
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