Module: jsdoc/util/error

Helper functions for handling errors.
Deprecated:
  • As of JSDoc 3.3.0. This module may be removed in a future release. Use the module module:jsdoc/util/logger to log warnings and errors.
Source:

Methods

(static) exports.handle(e)

Log an exception as an error. Prior to JSDoc 3.3.0, this method would either log the exception (if lenient mode was enabled) or re-throw the exception (default). In JSDoc 3.3.0 and later, lenient mode has been replaced with strict mode, which is disabled by default. If strict mode is enabled, calling the `handle` method causes JSDoc to exit immediately, just as if the exception had been re-thrown.
Parameters:
Name Type Description
e Error The exception to log.
Deprecated:
  • As of JSDoc 3.3.0. This module may be removed in a future release.
Source: