New (XPathError constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with " <span class="pageSubtitle"><section begin=dpl_desc/>Create new XPathError instance<section end=dpl_desc/></span> New constructor <p> <var>New</va...")
 
m (Redirected page to XPathError class#New constructor)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
#REDIRECT [[XPathError class#New constructor|New constructor]]


<span class="pageSubtitle"><section begin=dpl_desc/>Create new XPathError instance<section end=dpl_desc/></span>
[[Category:XPathError methods|New constructor]]
[[Category:XPathError methods|New constructor]]
<p>
<var>New</var> is a member of the <var>[[XPathError class|XPathError]]</var> class.
</p>
As shown in the syntax that follows,
the <var>New</var> method arguments set the values of the properties of the class that have the
corresponding names.
==Syntax==
<p class="syntax">[%XPathErr =] [(XPathError):]    -
                New (  Reason = reasonEnum,          -
                    [,&nbsp;CharacterPosition = num]      -
                    [,&nbsp;Description =  string] )
</p>
===Syntax terms===
<table class="syntaxTable">
<tr><th>%XPathErr</th>
<td>An <var>XPathError</var> object.
</td></tr>
<tr><th><b>Reason=</b>reasonEnum</th>
<td>This name required parameter specifies the value to be assigned to the exception object's <var>[[Reason (XPathError property)|Reason]]</var> property.
The Reason parameter is '''not''' optional.
</td></tr>
<tr><th><b>CharacterPosition=</b>num</th>
<td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's <var>[[CharacterPosition (XPathError property)|CharacterPosition]]</var> property.
</td></tr>
<tr><th><b>Description=</b>string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's <var>[[Description (XPathError property)|Description]]</var> property.
</td></tr></table>

Latest revision as of 16:11, 11 May 2011