Skip to content
napi-bindings

Search

Search pages, projects and the Node-API reference

Browse Node-APIshow

napi_fatal_exception

functionv3node_api.h

Trigger an 'uncaughtException' in JavaScript. Useful if an async callback throws an exception with no way to recover.

napi_status napi_fatal_exception(napi_env env, napi_value err);
  • [in] env: The environment that the API is invoked under.
  • [in] err: The error that is passed to 'uncaughtException'.

Trigger an 'uncaughtException' in JavaScript. Useful if an async callback throws an exception with no way to recover.

View in the official Node.js documentation