# Methods

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>public static</strong> <a href="methods/static-define"><strong>define()</strong></a><strong>:</strong> <mark style="color:green;">Error</mark><<mark style="color:green;">Id</mark>><br>Defines the <a href=""><code>Error</code></a> instance with the <a href="../commonerror/accessors/get-message">message</a> built of the given required <a href="static-define#problem-string"><code>problem</code></a>, <a href="static-define#fix-string"><code>fix</code></a> and optional <a href="static-define#id-id"><code>id</code></a> on the <a href="static-define#template-error.template"><code>template</code></a>.</p> |
| <p><strong>public static</strong> <a href="methods/static-iserror"><strong>isError()</strong></a><strong>:</strong> value is <mark style="color:green;">Error</mark><<mark style="color:green;">Id</mark>><br>Checks whether the <a href="#value-any"><code>value</code></a> of <a href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any"><code>any</code></a> type is an instance of <a href=""><code>Error</code></a> of any or the given <a href="#id-id">identification</a>.</p>                                                                                                                             |
