#[repr(C)]pub struct Message(/* private fields */);
Expand description
An error message.
Implementations§
source§impl 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.