> For the complete documentation index, see [llms.txt](https://error.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://error.angular-package.dev/draft-5/errors/constructor.md).

# Constructor

## `Errors()`

Creates the [`Errors`](/draft-5/errors/overview.md) instance of [unique identification](/draft-5/getting-started/basic-concepts.md#unique-identification) numbers under which the [`Error`](/draft-5/error/overview.md) objects are stored.

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

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

{% endcode %}

### Parameters

#### `...id:`[<mark style="color:green;">`Id`</mark>](/draft-5/errors/generic-type-variables.md#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`](/draft-5/errors/generic-type-variables.md#errors-less-than-id-greater-than) indicates [unique identification](/draft-5/getting-started/basic-concepts.md#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');
```
