# Constructor

## `TypeErrors()`

Creates the [`ValidationErrors`](https://error.angular-package.dev/validationerrors) instance of [unique identification](https://error.angular-package.dev/getting-started/basic-concepts#unique-identification) numbers under which the [`ValidationError`](https://error.angular-package.dev/validationerror) objects are stored.

{% code title="validation-errors.class.ts" %}

```typescript
constructor(...id: Id[]) {
  super(...id);
}
```

{% endcode %}

### Parameters

#### `...id:`[<mark style="color:green;">`Id`</mark>](https://error.angular-package.dev/generic-type-variables#validationerrors-less-than-id-greater-than)`[]`

A [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) of generic type variable [`Id`](https://error.angular-package.dev/generic-type-variables#validationerrors-less-than-id-greater-than) indicates [unique identification](https://error.angular-package.dev/getting-started/basic-concepts#unique-identification) numbers under which the [`ValidationError`](https://error.angular-package.dev/validationerror) objects are stored.

## Example usage

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

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