pub struct JssError {
pub kind: Box<JssErrorKind>,
pub line: u32,
pub column: u32,
}Expand description
Error type for all jss operators
Fields§
§kind: Box<JssErrorKind>Actual error kind
line: u32§column: u32Implementations§
Source§impl JssError
impl JssError
pub fn undefined_variable<S>(msg: S) -> Self
pub fn runtime_error<S>(msg: S) -> Self
pub fn syntax_error<S>(msg: S) -> Self
pub fn unreachable() -> Self
Trait Implementations§
Source§impl Error for JssError
impl Error for JssError
1.30.0 · 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<ParseFloatError> for JssError
impl From<ParseFloatError> for JssError
Source§fn from(e: ParseFloatError) -> Self
fn from(e: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError<'_>> for JssError
impl From<ValidationError<'_>> for JssError
Source§fn from(e: ValidationError<'_>) -> Self
fn from(e: ValidationError<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JssError
impl !RefUnwindSafe for JssError
impl Send for JssError
impl Sync for JssError
impl Unpin for JssError
impl !UnwindSafe for JssError
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