> 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/rangeerrors/constructor.md).

# Constructor

## `RangeErrors()`

Creates the [`RangeErrors`](/rangeerrors/overview.md) instance of [unique identification](/getting-started/basic-concepts.md#unique-identification) numbers under which the [`RangeError`](/rangeerror/overview.md) objects are stored.

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

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

{% endcode %}

### Parameters

#### `...id:`[<mark style="color:green;">`Id`</mark>](/rangeerrors/generic-type-variables.md#rangeerrors-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`](/rangeerrors/generic-type-variables.md#rangeerrors-less-than-id-greater-than) indicates [unique identification](/getting-started/basic-concepts.md#unique-identification) numbers under which the [`RangeError`](/rangeerror/overview.md) objects are stored.

## Example usage

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

// Returns RangeErrors {}
new RangeErrors('RE: 4332', 'RE: 4331', 'RE: 4330');

// Returns RangeErrors {}
new RangeErrors('RV: 332', 'RV: 331', 'RV: 330');
```
