New (XmlParseError constructor)

From m204wiki
Jump to navigation Jump to search

Create a new XmlParseError object (XmlParseError class) This constructor generates an instance of an XmlParseError exception. As shown in the syntax that follows, the New method arguments set the values of the class properties that have the corresponding names.

Each argument to New sets the value of the corresponding property of the newly constructed XmlParseError object.

Syntax

%xmlParseError = [%(XmlParseError):]New( Reason= xmlParseErrorReason, - [CharacterPosition= number], - [Description= string], - [InputHexValue= string])

Syntax terms

xmlParsError A reference to an instance of a XmlParseError object.
%(XmlParseError)The class name in parentheses denotes a shared method.
Reason This name required parameter specifies the value to be assigned to the exception object's Reason property.

Reason settings are XmlParseErrorReason enumeration values, which are described in "Reason Syntax terms". The Reason parameter is not optional.

CharacterPosition This optional, but Name-Required, parameter specifies the numeric value (number) to be assigned to the object's CharacterPosition property. Its default value is 0.
Description This optional, but Name-Required, parameter specifies the string value (string) to be assigned to the object's Description property. Its default value is a null string.
InputHexValue This optional, but Name-Required, parameter specifies the string value (string) to be assigned to the object's InputHexValue property. Its default value is a null string.

See also