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

# Methods

The \`CommonErrors\` methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public</strong> <a href="/error/commonerrors/methods/delete.md"><strong>delete()</strong></a><strong>:</strong> <mark style="color:green;">this</mark><br>Deletes the error of a specified <a href="/error/commonerrors/methods/delete.md#id-errorid"><code>id</code></a> from the object.</p>                                                                                                                                            |
| <p><strong>public</strong> <a href="/error/commonerrors/methods/has.md"><strong>has()</strong></a><strong>:</strong> <mark style="color:green;">boolean</mark><br>The <code>has()</code> method checks whether the error of the given <a href="/error/commonerrors/methods/has.md#id-errorid"><code>id</code></a> exists in a specified object.</p>                                                                                                  |
| <p><strong>public</strong> <a href="/error/commonerrors/methods/throw.md"><strong>throw()</strong></a><strong>:</strong> <mark style="color:green;">void</mark><br>Throws an error of the given <a href="/error/commonerrors/methods/throw.md#id-errorid"><code>id</code></a> if the unique <a href="/pages/mb13waFtHVZxVvkUgUwQ#...id-id"><code>id</code></a> was provided in the <a href="/error/commonerrors/constructor.md">constructor</a>.</p> |
| <p><strong>protected</strong> <a href="/error/commonerrors/methods/isallowedid.md"><strong>isAllowedId()</strong></a><strong>:</strong> <mark style="color:green;">boolean</mark><br>Checks whether the given <a href="/error/getting-started/basic-concepts.md#unique-identification">identification</a> number was provided in the <a href="/error/commonerrors/constructor.md">constructor</a>.</p>                                               |
