New (XPathError constructor): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:XPathError:New subtitle}} | {{Template:XPathError:New subtitle}} | ||
Each argument to <var>New</var> sets the value of the corresponding property of the newly constructed <var>XPathError</var> object. | |||
==Syntax== | ==Syntax== | ||
{{Template:XPathError:New syntax}} | {{Template:XPathError:New syntax}} |
Revision as of 02:28, 18 April 2011
Create a new XPathError object (XPathError class)
[Introduced in Sirius Mods 7.8]
Each argument to New sets the value of the corresponding property of the newly constructed XPathError object.
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. |