#[repr(C)]pub struct Message(_);
Expand description
An error message.
Implementations
sourceimpl Message
impl Message
pub fn get<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, String>
sourcepub fn get_stack_trace<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, StackTrace>>
pub fn get_stack_trace<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, StackTrace>>
Exception stack trace. By default stack traces are not captured for uncaught exceptions. SetCaptureStackTraceForUncaughtExceptions allows to change this option.
pub fn get_source_line<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, String>>
sourcepub fn get_script_resource_name<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, Value>>
pub fn get_script_resource_name<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Option<Local<'s, Value>>
Returns the resource name for the script from where the function causing the error originates.
sourcepub fn get_line_number(&self, scope: &mut HandleScope<'_>) -> Option<usize>
pub fn get_line_number(&self, scope: &mut HandleScope<'_>) -> Option<usize>
Returns the number, 1-based, of the line where the error occurred.
sourcepub fn get_start_position(&self) -> int
pub fn get_start_position(&self) -> int
Returns the index within the script of the first character where the error occurred.
sourcepub fn get_end_position(&self) -> int
pub fn get_end_position(&self) -> int
Returns the index within the script of the last character where the error occurred.
sourcepub fn get_wasm_function_index(&self) -> int
pub fn get_wasm_function_index(&self) -> int
Returns the Wasm function index where the error occurred. Returns -1 if message is not from a Wasm script.
sourcepub fn error_level(&self) -> int
pub fn error_level(&self) -> int
Returns the error level of the message.
sourcepub fn get_start_column(&self) -> usize
pub fn get_start_column(&self) -> usize
Returns the index within the line of the first character where the error occurred.
sourcepub fn get_end_column(&self) -> usize
pub fn get_end_column(&self) -> usize
Returns the index within the line of the last character where the error occurred.
Passes on the value set by the embedder when it fed the script from which this Message was generated to V8.
pub fn is_opaque(&self) -> bool
Trait Implementations
sourceimpl<'s> PartialEq<Message> for Message
impl<'s> PartialEq<Message> for Message
impl Eq for Message
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more