New (XPathError constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
 
{{Template:XPathError:New subtitle}}
<span class="pageSubtitle"><section begin=dpl_desc/>Create new XPathError instance<section end=dpl_desc/></span>
[[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,
As shown in the syntax that follows,
Line 10: Line 5:
corresponding names.
corresponding names.
==Syntax==
==Syntax==
<p class="syntax">[%XPathErr =] [(XPathError):]    -
{{Template:XPathError:New syntax}}
                New (  Reason = reasonEnum,          -
                    [,&nbsp;CharacterPosition = num]      -
                    [,&nbsp;Description =  string] )
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 30: Line 21:
<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>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>
</td></tr></table>
==See also==
{{Template:XPathError:New footer}}

Revision as of 20:42, 25 March 2011

Create a new XPathError object (XPathError class)

[Introduced in Sirius Mods 7.8]

As shown in the syntax that follows, the New method arguments set the values of the properties of the class that have the corresponding names.

Syntax

%xPathError = [%(XPathError):]New( Reason= xPathErrorReason, - [Description= string], - [CharacterPosition= number])

Syntax terms

%XPathErr An XPathError object.
Reason=reasonEnum This name required parameter specifies the value to be assigned to the exception object's Reason property.

The Reason parameter is not optional.

CharacterPosition=num This name required parameter specifies the numeric value (num) to be assigned to the object's CharacterPosition property.
Description=string This name required parameter specifies the string value (string) to be assigned to the object's Description property.

See also