# Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public</strong> <a href="methods/get"><strong>get()</strong></a>: <mark style="color:green;">RangeError</mark><<mark style="color:green;">ErrorId</mark>>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | <mark style="color:green;">undefined</mark><br>Returns the <a href="../rangeerror"><code>RangeError</code></a> instance of the given unique identification <a href="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 range errors, where the key is a <a href="../../getting-started/basic-concepts#unique-identification">unique identification</a>.</p>                              |
| <p><strong>public</strong> <a href="methods/set"><strong>set()</strong></a><strong>:</strong> <mark style="color:green;">this</mark><br>Sets the <a href="../rangeerror"><code>RangeError</code></a> object with the message built from the given required <a href="set#problem-string"><code>problem</code></a>, <a href="set#fix-string"><code>fix</code></a>, <a href="set#id-errorid"><code>id</code></a>, and optional <a href="set#min-number"><code>min</code></a>, <a href="set#max-number"><code>max</code></a> on the given or stored <a href="set#template-rangeerrors.template"><code>template</code></a> under the given <a href="set#id-errorid"><code>id</code></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/rangeerrors/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.
