Struct rusty_v8::Exception[][src]

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.

Trait Implementations

impl Debug for Exception[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.