Module errors

Source
Expand description

utils for getting and reporting exceptions

Functions§

error_to_js_error
convert an instance of Error to JsError
get_exception
Get the last exception from the runtime, and if present, convert it to an JsError.
get_stack
is_error
See if a JSValueRef is an Error object
is_error_q
See if a JSValueRef is an Error object
new_error
Create a new Error object
throw
Throw an error and get an Exception JSValue to return from native methods