|
|
(4 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| | #REDIRECT [[XPathError class#New constructor|New constructor]] |
|
| |
|
| <span class="pageSubtitle"><section begin=dpl_desc/>Create new XPathError instance<section end=dpl_desc/></span>
| |
| [[Category:XPathError methods|New constructor]] | | [[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,
| |
| the <var>New</var> method arguments set the values of the properties of the class that have the
| |
| corresponding names.
| |
| ==Syntax==
| |
| <p class="syntax">[%XPathErr =] [(XPathError):] -
| |
| New ( Reason = reasonEnum, -
| |
| [, CharacterPosition = num] -
| |
| [, Description = string] )
| |
| </p>
| |
| ===Syntax terms===
| |
| <table class="syntaxTable">
| |
| <tr><th>%XPathErr</th>
| |
| <td>An <var>XPathError</var> object.
| |
| </td></tr>
| |
| <tr><th><b>Reason=</b>reasonEnum</th>
| |
| <td>This name required parameter specifies the value to be assigned to the exception object's <var>[[Reason (XPathError property)|Reason]]</var> property.
| |
| The Reason parameter is '''not''' optional.
| |
| </td></tr>
| |
| <tr><th><b>CharacterPosition=</b>num</th>
| |
| <td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's <var>[[CharacterPosition (XPathError property)|CharacterPosition]]</var> property.
| |
| </td></tr>
| |
| <tr><th><b>Description=</b>string</th>
| |
| <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>
| |