# Overview

## `TypeErrors {}`

The `TypeErrors` is an extension of the [`CommonErrors`](https://docs.angular-package.dev/error/commonerrors) object that represents multiple identification numbers under which the errors of the [`TypeError`](https://docs.angular-package.dev/error/typeerror) type are prepared to throw.

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

### Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><strong>public</strong> <a href="methods/get"><strong>get()</strong></a>: <mark style="color:green;">TypeError</mark><<mark style="color:green;">ErrorId</mark>>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | <mark style="color:green;">undefined</mark><br>Returns the <a href="../typeerror"><code>TypeError</code></a> instance of the given <a href="../../getting-started/basic-concepts#unique-identification">unique identification</a> <a href="../methods/get#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="methods/geterrors"><strong>getErrors()</strong></a>: { \[<mark style="color:green;">Key</mark> in <mark style="color:green;">Id</mark>]: <mark style="color:green;">RangeError</mark><<mark style="color:green;">Key</mark>>                                                                                                                                                                                                                                                                                                                                                                                                                                                         | <mark style="color:green;">undefined</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 type errors, where the key is a <a href="../../getting-started/basic-concepts#unique-identification">unique identification</a>.</p>                                                                                                                 |
| <p><strong>public</strong> <a href="../rangeerrors/methods/set"><strong>set()</strong></a><strong>:</strong> <mark style="color:green;">this</mark><br>Sets the <a href="../typeerror"><code>TypeError</code></a> object with the message built from the given required <a href="../methods/set#problem-string"><code>problem</code></a>, <a href="../methods/set#fix-string"><code>fix</code></a>, <a href="../methods/set#id-errorid"><code>id</code></a>, and optional <a href="../methods/set#type-string"><code>type</code></a> on the given or stored <a href="../methods/set#template-typeerrors.template"><code>template</code></a> under the given <a href="../methods/set#id-errorid"><code>id</code></a>.</p> |                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
