# Constructor

## `Errors()`

Creates the [`Errors`](https://docs.angular-package.dev/error/errors) instance of [unique identification](https://docs.angular-package.dev/error/getting-started/basic-concepts#unique-identification) numbers under which the [`Error`](https://docs.angular-package.dev/error/error) objects are stored.

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

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

{% endcode %}

### Parameters

#### `...id:`[<mark style="color:green;">`Id`</mark>](https://docs.angular-package.dev/error/generic-type-variables#errors-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://docs.angular-package.dev/error/generic-type-variables#errors-less-than-id-greater-than) indicates [unique identification](https://docs.angular-package.dev/error/getting-started/basic-concepts#unique-identification) numbers under which the errors are stored in the object.

## Example usage

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

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