New (XmlParseError constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to syntax template, tags and edits)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:XmlParseError:New subtitle}}
#REDIRECT [[XmlParseError class#New constructor|New constructor]]
This constructor generates an instance of an <var>[[XmlParseError_class|XmlParseError]]</var> exception. As shown in the syntax that follows, the <var>New</var> method arguments set the values of the class properties that have the corresponding names.
Each argument to <var>New</var> sets the value of the corresponding property of the newly constructed <var>XmlParseError</var> object.
==Syntax==
{{Template:XmlParseError:New syntax}}
===Syntax terms===
<table class="syntaxTable">
<tr><th>xmlParsError</th>
<td>A reference to an instance of a <var>[[XmlParseError_class|XmlParseError]]</var> object.
</td></tr>
<tr><th>%(XmlParseError)</th><td>The class name in parentheses denotes a shared method.</td></tr>
<tr><th>Reason</th>
<td>This <var>[[Methods#Named parameters|name required]]</var> parameter specifies the value to be assigned to the exception object's <var>[[Reason_(XmlParseError_property)|Reason]]</var> property.
<var>Reason</var> settings are <var>XmlParseErrorReason</var> enumeration values, which are described in [[Reason (XmlParseError property)#Syntax terms|"Reason Syntax terms"]].
The <var>Reason</var> parameter is '''not''' optional.
</td></tr>
<tr><th>CharacterPosition</th>
<td>This optional, but <var>Name-Required</var>, parameter specifies the numeric value (''number'') to be assigned to the object's <var>[[CharacterPosition_(XmlParseError_property)|CharacterPosition]]</var> property. Its default value is 0.
</td></tr>
<tr><th>Description</th>
<td>This optional, but <var>Name-Required</var>, parameter  specifies the string value (''string'') to be assigned to the object's <var>[[Description_(XmlParseError_property)|Description]]</var> property. Its default value is a null string.
</td></tr>
<tr><th>InputHexValue</th>
<td>This optional, but <var>Name-Required</var>, parameter  specifies the string value (''string'') to be assigned to the object's <var>[[InputHexValue_(XmlParseError_property)|InputHexValue]]</var> property. Its default value is a null string.
</td></tr></table>


==See also==
[[Category:XmlParseError methods|New constructor]]
{{Template:XmlParseError:New footer}}

Latest revision as of 19:52, 10 May 2011