Constructor

The `TypeErrors` constructor

TypeErrors()

Creates the ValidationErrors instance of unique identification numbers under which the ValidationError objects are stored.

validation-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 ValidationError objects are stored.

Example usage

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

// Define validation errors.
new ValidationErrors(
  '(VE: 4332)',
  '(VE: 4331)',
  '(VE: 4330)'
);

Last updated