[][src]Struct rusty_v8_m::Exception

pub struct Exception;

Create new error objects by calling the corresponding error object constructor with the message.

Methods

impl Exception[src]

pub fn error<'sc>(
    scope: &mut impl ToLocal<'sc>,
    message: Local<String>
) -> Local<'sc, Value>
[src]

pub fn range_error<'sc>(
    scope: &mut impl ToLocal<'sc>,
    message: Local<String>
) -> Local<'sc, Value>
[src]

pub fn reference_error<'sc>(
    scope: &mut impl ToLocal<'sc>,
    message: Local<String>
) -> Local<'sc, Value>
[src]

pub fn syntax_error<'sc>(
    scope: &mut impl ToLocal<'sc>,
    message: Local<String>
) -> Local<'sc, Value>
[src]

pub fn type_error<'sc>(
    scope: &mut impl ToLocal<'sc>,
    message: Local<String>
) -> Local<'sc, Value>
[src]

pub fn create_message<'sc>(
    scope: &mut impl ToLocal<'sc>,
    exception: Local<Value>
) -> Local<'sc, Message>
[src]

Creates an error message for the given exception. Will try to reconstruct the original stack trace from the exception value, or capture the current stack trace if not available.

pub fn get_stack_trace<'sc>(
    scope: &mut impl ToLocal<'sc>,
    exception: Local<Value>
) -> Option<Local<'sc, StackTrace>>
[src]

Returns the original stack trace that was captured at the creation time of a given exception, or an empty handle if not available.

Auto Trait Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.