> 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/getting-started/public-api.md).

# Public API

Public features that can be imported.

```typescript
import {
  // Class.
  CommonError,
  CommonErrors,
  Error,
  Errors,
  RangeError,
  RangeErrors,
  TypeError,
  TypeErrors,
  ValidationError,
  ValidationErrors
} from '@angular-package/error';
```

### `CommonError`

The [`CommonError`](/draft-5/commonerror/overview.md) abstract object to throw an [identified](/draft-5/getting-started/basic-concepts.md#identification) error with a [solution](/draft-5/getting-started/basic-concepts.md#fix) to the described [problem](/draft-5/getting-started/basic-concepts.md#problem), additional [type](/draft-5/getting-started/basic-concepts.md#type), and [range](/draft-5/getting-started/basic-concepts.md#range) built on the [template](/draft-5/getting-started/basic-concepts.md#template).

### `CommonErrors`

The [`CommonErrors`](/draft-5/commonerrors/overview.md) object represents the storage of errors with [unique identification](/draft-5/getting-started/basic-concepts.md#unique-identification) numbers.

### `Error`

The [`Error`](/draft-5/error/overview.md) object is an extension of the [`CommonError`](/draft-5/commonerror/overview.md) class and is thrown when a runtime error occurs with a [message](https://app.gitbook.com/s/23iV8ygEQUrhqw7I3D8g/~/changes/lXvTfsmAkHoNRKsQjxlq/commonerror/accessors/get-message) built from a [solution](https://app.gitbook.com/s/23iV8ygEQUrhqw7I3D8g/~/changes/lXvTfsmAkHoNRKsQjxlq/commonerror/accessors/get-fix) to the described [problem](https://app.gitbook.com/s/23iV8ygEQUrhqw7I3D8g/~/changes/lXvTfsmAkHoNRKsQjxlq/commonerror/accessors/get-problem) but with additional identification, on the [template](https://app.gitbook.com/s/23iV8ygEQUrhqw7I3D8g/~/changes/lXvTfsmAkHoNRKsQjxlq/commonerror/accessors/get-template).

### `Errors`

The [`Errors`](/draft-5/errors/overview.md) is an extension of the [`CommonErrors`](/draft-5/commonerrors/overview.md) object that represents multiple identification numbers under which the errors of the [`Error`](/draft-5/error/overview.md) type are prepared to throw.

### `RangeError`

The [`RangeError`](/draft-5/rangeerror/overview.md) object is an extension of the [`CommonError`](/draft-5/commonerror/overview.md) class and is thrown when a value is not in the set or range of allowed values with the message built from the described problem and its solution, optional explicit identification and minimum/maximum range on the given or stored template.

### `RangeErrors`

The [`RangeErrors`](/draft-5/rangeerrors/overview.md) is an extension of the [`CommonErrors`](/draft-5/commonerrors/overview.md) object that represents multiple identification numbers under which the errors of the [`RangeError`](/draft-5/rangeerror/overview.md) type are prepared to throw.

### `TypeError`

The [`TypeError`](/draft-5/typeerror/overview.md) object is an extension of the [`CommonError`](/draft-5/commonerror/overview.md) class and is thrown when an operation could not be performed, typically(but not exclusively) when a value is not of the expected type, with the [message](/draft-5/commonerror/accessors/get-message.md) built from the described problem and its solution, optional an explicit identification and type, on the given or stored template.

### `TypeErrors`

The [`TypeErrors`](/draft-5/typeerrors/overview.md) is an extension of the [`CommonErrors`](/draft-5/commonerrors/overview.md) object that represents multiple identification numbers under which the errors of the [`TypeError`](/draft-5/typeerror/overview.md) type are prepared to throw.

### `ValidationError`

The [`ValidationError`](/draft-5/validationerror/overview.md) object is an extension of the [`CommonError`](/draft-5/commonerror/overview.md) class and is thrown when an operation could not be performed despite proper type(but not exclusively) with the [message](/draft-5/commonerror/accessors/get-message.md) built from the described problem and its solution, along with additional identification on the given or stored template.

### `ValidationErrors`

The [`ValidationErrors`](/draft-5/validationerrors/overview.md) is an extension of the [`CommonErrors`](/draft-5/commonerrors/overview.md) object that represents multiple identification numbers under which the errors of the [`ValidationError`](/draft-5/validationerror/overview.md) type are prepared to throw.
