Overview

The `CommonErrors` object

CommonErrors {}

The CommonErrors object represents the storage of errors with unique identification numbers.

Accessors

protected get errors(): Map<Id, any> The get accessor returns the errors of Map type by returning the #errors property of a specified object.

Properties

public static template?: string

Optional template of string type.

#id?: Set<Id> The collection of unique allowed identification numbers of generic type variable Id.

#errors: Map<Id, any> The errors storage of the Map type where the key is of the generic type variable Id.

Methods

public delete(): this

Deletes the error of a specified id from the object.

public has(): boolean The has() method checks whether the error of the given id exists in a specified object.

public throw(): void Throws an error of the given id if the unique id was provided in the constructor.

protected isAllowedId(): boolean Checks whether the given identification number was provided in the constructor.

Last updated