Constructor

Creates the `Errors` instance of unique identification numbers under which the `Error` objects are stored

Errors()

Creates the Errors instance of unique identification numbers under which the Error objects are stored.

errors.class.ts
constructor(...id: Id[]) {
  super(...id);
}

Parameters

...id:Id[]

A rest parameter of generic type variable Id indicates unique identification numbers under which the errors are stored in the object.

Example usage

// Example usage.
import { Errors } from '@angular-package/error';

// Returns Errors {}
new Errors('EG: 4332', 'EG: 4331', 'EG: 4330');

Last updated