pub unsafe extern "C" fn napi_fatal_exception(
env: napi_env,
err: napi_value,
) -> napi_statusAvailable on crate features
napi and api-12 only.Expand description
Throws UncaughtException to ArkTS.
§Arguments
-
env- Current running virtual machine context. -
err- Error object which is passed to ‘UncaughtException’.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If the param env and(or) err is nullptr;
If the param err is not an ArkTS Error value.
[napi_pending_exception] There is an uncaught exception occurred before execution.
Available since API-level: 12