The `CommonErrors` object
CommonErrors {}
The CommonErrors object represents the storage of errors with unique identification numbers.
CommonErrors
common-errors.class.ts
protected get errors(): Map<Id, any> The getarrow-up-right accessor returns the errors of Maparrow-up-right type by returning the #errors property of a specified object.
get
Map
#errors
public static template?: string
Optional template of stringarrow-up-right type.
string
#id?: Set<Id> The collection of unique allowed identification numbers of generic type variable Id.
Id
#errors: Map<Id, any> The errors storage of the Maparrow-up-right type where the key is of the generic type variable Id.
key
public delete(): this
Deletes the error of a specified id from the object.
id
public has(): boolean The has() method checks whether the error of the given id exists in a specified object.
has()
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 3 years ago