Type Alias 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>