ErrorModule

errors. ErrorModule

Module to store a global reference to all errors defined in the system. Errors are accessed from here and thrown appropriately elsewhere.

Constructor

new ErrorModule()

Source:

Extends

  • AbstractModule

Members

errors :object

Description:
  • A key/value store of all errors defined in the system. Errors are accessed via the human-readable error code for better readability when thrown in code.
Source:
See:
  • {AdaptError}
A key/value store of all errors defined in the system. Errors are accessed via the human-readable error code for better readability when thrown in code.
Type:
  • object

Methods

(async) init()

Source:

(async) loadErrors() → {Promise}

Description:
  • Loads all errors defined in Adapt module dependencies
Source:
Returns:
Type
Promise