> For the complete documentation index, see [llms.txt](https://docs.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://docs.angular-package.dev/error/errors/constructor.md).

# Constructor

## `Errors()`

Creates the [`Errors`](/error/errors/overview.md) instance of [unique identification](/error/getting-started/basic-concepts.md#unique-identification) numbers under which the [`Error`](/error/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>](/error/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`](/error/errors/generic-type-variables.md#errors-less-than-id-greater-than) indicates [unique identification](/error/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');
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.angular-package.dev/error/errors/constructor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
