pub enum JSErrorKind {
TokenizationError,
ParseError,
EvaluationError {
message: String,
},
InfiniteLoopError {
iterations: usize,
},
VariableNotFound {
name: String,
},
TypeError {
message: String,
},
SyntaxError {
message: String,
},
RuntimeError {
message: String,
},
Throw {
value: Value,
},
IoError(Error),
}Variants§
TokenizationError
ParseError
EvaluationError
InfiniteLoopError
VariableNotFound
TypeError
SyntaxError
RuntimeError
Throw
IoError(Error)
Trait Implementations§
Source§impl Debug for JSErrorKind
impl Debug for JSErrorKind
Source§impl Display for JSErrorKind
impl Display for JSErrorKind
Source§impl Error for JSErrorKind
impl Error for JSErrorKind
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()
Auto Trait Implementations§
impl Freeze for JSErrorKind
impl !RefUnwindSafe for JSErrorKind
impl !Send for JSErrorKind
impl !Sync for JSErrorKind
impl Unpin for JSErrorKind
impl !UnwindSafe for JSErrorKind
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