Struct deno_core::error::JsError [−][src]
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 stack: Option<String>, }
Expand description
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: String
source_line: Option<String>
script_resource_name: Option<String>
line_number: Option<i64>
start_column: Option<i64>
end_column: Option<i64>
frames: Vec<JsStackFrame>
stack: Option<String>
Implementations
impl JsError
[src]
impl JsError
[src]pub fn from_v8_exception(
scope: &mut HandleScope<'_>,
exception: Local<'_, Value>
) -> Self
[src]
scope: &mut HandleScope<'_>,
exception: Local<'_, Value>
) -> Self
Trait Implementations
impl Error for JsError
[src]
impl Error for JsError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more