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

# Overview

## `Errors {}`

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

{% embed url="<https://github.com/angular-package/error/blob/main/src/lib/errors.class.ts>" %}
`errors.class.ts`
{% endembed %}

### Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public</strong> <a href="/pages/qrXPIluGyuNOjRJclTQY"><strong>get()</strong></a><strong>:</strong> <mark style="color:green;">Error</mark><<mark style="color:green;">ErrorId</mark>>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | <mark style="color:green;">undefined</mark><br>Returns the <a href="/pages/8orEKqBluVa8xEGaGvh8"><code>Error</code></a> instance of the given unique identification <a href="/pages/qrXPIluGyuNOjRJclTQY#id-errorid"><code>id</code></a> if set, otherwise <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined"><code>undefined</code></a>.</p> |
| <p><strong>public</strong> <a href="/pages/AeDEXpmMWQXeXhFssnyv"><strong>getErrors()</strong></a><strong>:</strong> { \[<mark style="color:green;">Key</mark> in <mark style="color:green;">Id</mark>]: <mark style="color:green;">Error</mark><<mark style="color:green;">Key</mark>> }<br>Returns an <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object"><code>object</code></a> of set errors, where the key is a <a href="/pages/6Nle1uMltWSb2uh6hgTQ#unique-identification">unique identification</a>.</p>                                                                                                                                                            |                                                                                                                                                                                                                                                                                                                                                                                                 |
| <p><strong>public</strong> <a href="/pages/g8g9UoxtaZpiUPOeeRPP"><strong>set()</strong></a><strong>:</strong> <mark style="color:green;">this</mark><br>Sets the <a href="/pages/8orEKqBluVa8xEGaGvh8"><code>Error</code></a> object with the message built from the given required <a href="/pages/g8g9UoxtaZpiUPOeeRPP#problem-string"><code>problem</code></a>, <a href="/pages/g8g9UoxtaZpiUPOeeRPP#id-errorid"><code>id</code></a>, <a href="/pages/g8g9UoxtaZpiUPOeeRPP#fix-string"><code>fix</code></a> on the given or stored <a href="/pages/g8g9UoxtaZpiUPOeeRPP#template-errors.template"><code>template</code></a> under the given <a href="/pages/g8g9UoxtaZpiUPOeeRPP#id-errorid"><code>id</code></a>.</p> |                                                                                                                                                                                                                                                                                                                                                                                                 |
