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 (1 revision)
(No difference)

Revision as of 21:43, 16 January 2011

<section begin=dpl_desc/>Create new XPathError instance<section end=dpl_desc/>

New is a member of the XPathError class.

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

[%XPathErr =] [(XPathError):] - New ( Reason = reasonEnum, - [, CharacterPosition = num] - [, Description = string] )

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.