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

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}

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