[−][src]Struct rusty_v8_m::Message
An error message.
Methods
impl Message
[src]
pub fn get<'sc>(&self, scope: &mut impl ToLocal<'sc>) -> Local<'sc, String>
[src]
pub fn get_stack_trace<'sc>(
&self,
scope: &mut impl ToLocal<'sc>
) -> Option<Local<'sc, StackTrace>>
[src]
&self,
scope: &mut impl ToLocal<'sc>
) -> Option<Local<'sc, 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 impl ToLocal<'s>,
context: Local<Context>
) -> Option<Local<'s, String>>
[src]
&self,
scope: &mut impl ToLocal<'s>,
context: Local<Context>
) -> Option<Local<'s, String>>
pub fn get_script_resource_name<'s>(
&self,
scope: &mut impl ToLocal<'s>
) -> Option<Local<'s, Value>>
[src]
&self,
scope: &mut impl ToLocal<'s>
) -> Option<Local<'s, Value>>
Returns the resource name for the script from where the function causing the error originates.
pub fn get_line_number(&self, context: Local<Context>) -> Option<usize>
[src]
Returns the number, 1-based, of the line where the error occurred.
pub fn get_start_position(&self) -> int
[src]
Returns the index within the script of the first character where the error occurred.
pub fn get_end_position(&self) -> int
[src]
Returns the index within the script of the last character where the error occurred.
pub fn get_wasm_function_index(&self) -> int
[src]
Returns the Wasm function index where the error occurred. Returns -1 if message is not from a Wasm script.
pub fn error_level(&self) -> int
[src]
Returns the error level of the message.
pub fn get_start_column(&self) -> usize
[src]
Returns the index within the line of the first character where the error occurred.
pub fn get_end_column(&self) -> usize
[src]
Returns the index within the line of the last character where the error occurred.
pub fn is_shared_cross_origin(&self) -> bool
[src]
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
[src]
Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,