[][src]Struct deno_core::JsError

pub struct JsError {
    pub message: String,
    pub source_line: Option<String>,
    pub script_resource_name: Option<String>,
    pub line_number: Option<i64>,
    pub start_column: Option<i64>,
    pub end_column: Option<i64>,
    pub frames: Vec<JsStackFrame>,
    pub formatted_frames: Vec<String>,
}

A JsError represents an exception coming from V8, with stack frames and line numbers. The deno_cli crate defines another JsError type, which wraps the one defined here, that adds source map support and colorful formatting.

Fields

message: Stringsource_line: Option<String>script_resource_name: Option<String>line_number: Option<i64>start_column: Option<i64>end_column: Option<i64>frames: Vec<JsStackFrame>formatted_frames: Vec<String>

Implementations

impl JsError[src]

pub fn from_v8_exception(
    scope: &mut HandleScope<'_>,
    exception: Local<'_, Value>
) -> Self
[src]

Trait Implementations

impl Clone for JsError[src]

impl Debug for JsError[src]

impl Display for JsError[src]

impl Error for JsError[src]

impl PartialEq<JsError> for JsError[src]

impl StructuralPartialEq for JsError[src]

Auto Trait Implementations

impl RefUnwindSafe for JsError

impl Send for JsError

impl Sync for JsError

impl Unpin for JsError

impl UnwindSafe for JsError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.