pub struct JsError {
pub name: String,
pub message: String,
pub stack: String,
pub file: Option<PathBuf>,
pub line: Option<u32>,
pub column: Option<u32>,
pub invalid: bool,
}Expand description
An exception thrown (or a promise rejected) by the site’s code.
Fields§
§name: StringTypeError, or empty when a non-Error value was thrown.
message: String§stack: String§file: Option<PathBuf>Where the error is reported: the first stack frame inside the
project and outside node_modules, else the first frame.
line: Option<u32>§column: Option<u32>§invalid: bool11ty’s own refusal of a JavaScript template (“No JavaScript template returned from …”), not the site’s code throwing.
Trait Implementations§
impl Eq for JsError
impl StructuralPartialEq for JsError
Auto Trait Implementations§
impl Forget for JsError
impl Freeze for JsError
impl Move for JsError
impl RefUnwindSafe for JsError
impl Send for JsErrorwhere
RawVecInner: Send,
impl Sync for JsErrorwhere
RawVecInner: Sync,
impl Unpin for JsError
impl UnsafeUnpin for JsError
impl UnwindSafe for JsErrorwhere
RawVecInner: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.