Overview

The `Errors` object

Errors {}

The Errors is an extension of the CommonErrors object that represents multiple identification numbers under which the errors of the Error type are prepared to throw.

errors.class.ts

Methods

public get(): Error<ErrorId> | undefined Returns the Error instance of the given unique identification id if set, otherwise undefined.

public getErrors(): { [Key in Id]: Error<Key> } Returns an object of set errors, where the key is a unique identification.

public set(): this Sets the Error object with the message built from the given required problem, id, fix on the given or stored template under the given id.

Last updated