# Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public static</strong> <a href="/pages/7leXTDQtmSrFMwpWvEW1"><strong>define()</strong></a><strong>: </strong><mark style="color:green;"><strong>ValidationError</strong></mark><strong><</strong><mark style="color:green;"><strong>Id</strong></mark><strong>></strong><br>Defines the <a href="/pages/tWJbBkEAjqz0Kp1KEc0j"><code>ValidationError</code></a> instance with the <a href="/pages/UAsNmVmOuYGxNypELFFh">message</a> built of the given required <a href="/pages/7leXTDQtmSrFMwpWvEW1#problem-string"><code>problem</code></a>, <a href="/pages/7leXTDQtmSrFMwpWvEW1#fix-string"><code>fix</code></a> and optional <a href="/pages/7leXTDQtmSrFMwpWvEW1#id-id"><code>id</code></a> on the supplied or stored <a href="/pages/7leXTDQtmSrFMwpWvEW1#template-validationerror.template"><code>template</code></a>.</p> |
| <p><strong>public static</strong> <a href="/pages/GuKlSXtxySYdT8X2Oumq"><strong>isValidationError()</strong></a><strong>: value is </strong><mark style="color:green;"><strong>ValidationError</strong></mark><strong><</strong><mark style="color:green;"><strong>Id</strong></mark><strong>></strong><br>Checks whether the <a href="/pages/GuKlSXtxySYdT8X2Oumq#value-any"><code>value</code></a> of any type is the <a href="/pages/tWJbBkEAjqz0Kp1KEc0j"><code>ValidationError</code></a> instance of any or the given <a href="/pages/GuKlSXtxySYdT8X2Oumq#id-id">identification</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://docs.angular-package.dev/error/validationerror/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.
