Errors

core. Errors

Loads and stores all error definitions for the application. Errors are accessed via human-readable error codes for better readability when thrown in code.

Constructor

new Errors(options)

Source:
Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Description
dependencies Object Key/value map of dependency configs (each with a rootDir)
log function <optional>
Optional logging function (level, id, ...args)