New (InvalidRegex constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
m (match syntax table to syntax template, tags and edits)
Line 1: Line 1:
{{Template:InvalidRegex:New subtitle}}
{{Template:InvalidRegex:New subtitle}}
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>


Each argument to <var>New</var> sets the value of the corresponding property of the newly constructed <var>InvalidRegex</var> object.
==Syntax==
==Syntax==
{{Template:InvalidRegex:New syntax}}
{{Template:InvalidRegex:New syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%invReg</th>
<tr><th>%invalidRegex</th>
<td>A reference to an instance of an InvalidRegex object.
<td>A reference to an instance of an <var>InvalidRegex</var> object.
</td></tr>
</td></tr>
<tr><th><b>Code=</b>code</th>
<tr><th>%(InvalidRegex)</th><td>The class name in parentheses denotes a shared method.</td></tr>
<td>This name required parameter specifies the numeric value (''code'') to be assigned to the exception object's Code property.
<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>
</td></tr>
<tr><th><b>Description=</b>desc</th>
<tr><th>Description</th>
<td>This name required parameter specifies the string value (''desc'') to be assigned to the object's Description property.
<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>
</td></tr>
<tr><th><b>Position=</b>pos</th>
<tr><th>Position</th>
<td>This name required parameter specifies the numeric value (''pos'') to be assigned to the object's Position property.
<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>


</td></tr></table>
==See also==
==See also==
{{Template:InvalidRegex:New footer}}
{{Template:InvalidRegex:New footer}}

Revision as of 06:19, 22 April 2011

Create a new InvalidRegex object (InvalidRegex class) This constructor generates an instance of an InvalidRegex exception.

As shown below, the required arguments of the New method is the Code, Description, and Position properties. Each argument to New sets the value of the corresponding property of the newly constructed InvalidRegex object.

Syntax

%invalidRegex = [%(InvalidRegex):]New( Position= number, Code= number, - Description= string)

Syntax terms

%invalidRegex A reference to an instance of an InvalidRegex object.
%(InvalidRegex)The class name in parentheses denotes a shared method.
Code This Name-Required parameter specifies the numeric value (number) to be assigned to the exception object's Code property.
Description This Name-Required parameter specifies the string value (string) to be assigned to the object's Description property.
Position This Name-Required parameter specifies the numeric value (number) to be assigned to the object's Position property.

See also