[][src]Struct rusty_v8::Exception

pub struct Exception;

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

Implementations

impl Exception[src]

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

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

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

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

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

pub fn create_message<'s>(
    scope: &mut HandleScope<'s>,
    exception: Local<Value>
) -> Local<'s, 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<'s>(
    scope: &mut HandleScope<'s>,
    exception: Local<Value>
) -> Option<Local<'s, 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.