artichoke_backend::exception_handler

Function last_error

Source
pub fn last_error(
    interp: &mut Artichoke,
    exception: Value,
) -> Result<Error, Error>
Expand description

Transform a Exception Ruby Value into an Error.

ยงErrors

This function makes fallible calls into the Ruby VM to resolve the exception. If these calls return an error, that error is returned from this function.