[−][src]Struct rusty_v8::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]
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
pub fn range_error<'s>(
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
[src]
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
pub fn reference_error<'s>(
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
[src]
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
pub fn syntax_error<'s>(
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
[src]
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
pub fn type_error<'s>(
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
[src]
scope: &mut HandleScope<'s>,
message: Local<'_, String>
) -> Local<'s, Value>
pub fn create_message<'s>(
scope: &mut HandleScope<'s>,
exception: Local<'_, Value>
) -> Local<'s, Message>
[src]
scope: &mut HandleScope<'s>,
exception: Local<'_, Value>
) -> Local<'s, Message>
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]
scope: &mut HandleScope<'s>,
exception: Local<'_, Value>
) -> Option<Local<'s, StackTrace>>
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
Auto Trait Implementations
impl RefUnwindSafe for Exception
[src]
impl Send for Exception
[src]
impl Sync for Exception
[src]
impl Unpin for Exception
[src]
impl UnwindSafe for Exception
[src]
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,
pub 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.
pub 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>,