Type Alias rquickjs_core::CaughtResult

source ·
pub type CaughtResult<'js, T> = Result<T, CaughtError<'js>>;
Expand description

Result type containing an the JavaScript exception if there was one.

Aliased Type§

enum CaughtResult<'js, T> {
    Ok(T),
    Err(CaughtError<'js>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(CaughtError<'js>)

Contains the error value

Trait Implementations§

source§

impl<'js, T> ThrowResultExt<'js, T> for CaughtResult<'js, T>

source§

fn throw(self, ctx: &Ctx<'js>) -> Result<T>