# Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public</strong> <a href="/pages/xi0YKoG8xZkgZN9NkFaw"><strong>delete()</strong></a><strong>:</strong> <mark style="color:green;">this</mark><br>Deletes the error of a specified <a href="/pages/xi0YKoG8xZkgZN9NkFaw#id-errorid"><code>id</code></a> from the object.</p>                                                                                                                                       |
| <p><strong>public</strong> <a href="/pages/5dVyxHbYOjpt7OCBaNam"><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="/pages/5dVyxHbYOjpt7OCBaNam#id-errorid"><code>id</code></a> exists in a specified object.</p>                                                                                       |
| <p><strong>public</strong> <a href="/pages/T7Dy5DRfviVlHi4BXeuA"><strong>throw()</strong></a><strong>:</strong> <mark style="color:green;">void</mark><br>Throws an error of the given <a href="/pages/T7Dy5DRfviVlHi4BXeuA#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="/pages/mb13waFtHVZxVvkUgUwQ">constructor</a>.</p> |
| <p><strong>protected</strong> <a href="/pages/PkOMsn22h7BbWBQydoO7"><strong>isAllowedId()</strong></a><strong>:</strong> <mark style="color:green;">boolean</mark><br>Checks whether the given <a href="/pages/6Nle1uMltWSb2uh6hgTQ#unique-identification">identification</a> number was provided in the <a href="/pages/mb13waFtHVZxVvkUgUwQ">constructor</a>.</p>                                                         |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://error.angular-package.dev/commonerrors/methods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
