New (InvalidRegex constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Redirected page to InvalidRegex class#New constructor)
 
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><var>Code</var></th>
<td>This [[Methods#Named parameters|name required]] parameter specifies the numeric value (<var class="term">number</var>) to be assigned to the exception object's <var>[[Code_(InvalidRegex_property)|Code]]</var> property.
</td></tr>
<tr><th><var>Description</var></th>
<td>This name required parameter specifies the string value (<var class="term">string</var>) to be assigned to the object's <var>[[Description_(InvalidRegex_property)|Description]]</var> property.
</td></tr>
<tr><th><var>Position</var></th>
<td>This name required parameter specifies the numeric value (<var class="term">number</var>) to be assigned to the object's <var>[[Position_(InvalidRegex_property)|Position]]</var> property.
</td></tr></table>
 
==See also==
{{Template:InvalidRegex:New footer}}

Latest revision as of 15:55, 10 May 2011