|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
| {{Template:InvalidRegex:New subtitle}}
| | #REDIRECT [[InvalidRegex class#New constructor|New constructor]] |
| This constructor generates an instance of an <var>[[InvalidRegex_class|InvalidRegex]]</var> exception.
| |
| <p>As shown below, the required arguments of the <var>New</var> method is the <var>[[Code_(InvalidRegex_property)|Code]]</var>, <var>[[Description_(InvalidRegex_property)|Description]]</var>, and <var>[[Position_(InvalidRegex_property)|Position]]</var> properties. Each argument to <var>New</var> sets the value of the corresponding property of the newly constructed <var>InvalidRegex</var> object.</p>
| |
|
| |
|
| ==Syntax==
| | [[Category:InvalidRegex methods|New constructor]] |
| {{Template:InvalidRegex:New syntax}}
| |
| ===Syntax terms===
| |
| <table class="syntaxTable">
| |
| <tr><th>%invalidRegex</th>
| |
| <td>A reference to an instance of an <var>InvalidRegex</var> object.
| |
| </td></tr>
| |
| <tr><th>%(InvalidRegex)</th><td>The class name in parentheses denotes a shared method.</td></tr>
| |
| <tr><th>Code</th>
| |
| <td>This <var>[[Methods#Named parameters|Name-Required]]</var> parameter specifies the numeric value (''number'') to be assigned to the exception object's <var>[[Code_(InvalidRegex_property)|Code]]</var> property.
| |
| </td></tr>
| |
| <tr><th>Description</th>
| |
| <td>This <var>Name-Required</var> parameter specifies the string value (''string'') to be assigned to the object's <var>[[Description_(InvalidRegex_property)|Description]]</var> property.
| |
| </td></tr>
| |
| <tr><th>Position</th>
| |
| <td>This <var>Name-Required</var> parameter specifies the numeric value (''number'') to be assigned to the object's <var>[[Position_(InvalidRegex_property)|Position]]</var> property.
| |
| </td></tr></table>
| |
| | |
| ==See also==
| |
| {{Template:InvalidRegex:New footer}}
| |