Module quickjs_runtime::quickjs_utils::errors[][src]

utils for getting and reporting exceptions

Functions

error_to_eserror

convert an instance of Error to EsError

get_exception

Get the last exception from the runtime, and if present, convert it to an EsError.

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