New (InvalidRegex constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
 
{{Template:InvalidRegex:New subtitle}}
<span class="pageSubtitle"><section begin=dpl_desc/>Create new InvalidRegex instance<section end=dpl_desc/></span>
[[Category:InvalidRegex methods|New constructor]]
<p>
New is a member of the [[InvalidRegex class]].
</p>


This constructor generates an instance of an InvalidRegex exception.
This constructor generates an instance of an InvalidRegex exception.
Line 10: Line 5:
Description, and Position properties.
Description, and Position properties.
==Syntax==
==Syntax==
<p class="syntax">[%invReg =] [%(InvalidRegex):] New(Code=code,        -
{{Template:InvalidRegex:New syntax}}
                                  Description=desc, -
                                  Position=pos)
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 29: Line 21:


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

Revision as of 20:42, 25 March 2011

Create a new InvalidRegex object (InvalidRegex class)

This constructor generates an instance of an InvalidRegex exception. As shown below, the required argument of the New method is a setting of the Code, Description, and Position properties.

Syntax

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

Syntax terms

%invReg A reference to an instance of an InvalidRegex object.
Code=code This name required parameter specifies the numeric value (code) to be assigned to the exception object's Code property.
Description=desc This name required parameter specifies the string value (desc) to be assigned to the object's Description property.
Position=pos This name required parameter specifies the numeric value (pos) to be assigned to the object's Position property.

See also