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