Reason (XPathError property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
 
{{Template:XPathError:Reason subtitle}}
<span class="pageSubtitle"><section begin=dpl_desc/>XPathErrorReason enumeration value indicating the type of error causing the exception<section end=dpl_desc/></span>
[[Category:XPathError methods|Reason property]]
<p>
<var>Reason</var> is a member of the <var>[[XPathError class|XPathError]]</var> class.
</p>


==Syntax==
==Syntax==
<p class="syntax">%reason = %XPathErr:Reason
{{Template:XPathError:Reason syntax}}
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 18: Line 12:


</td></tr></table>
</td></tr></table>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>An <var>XPathErrorReason</var> enumeration may have one of the following values:
<li>An <var>XPathErrorReason</var> enumeration may have one of the following values:
Line 32: Line 26:
character string whose value is the name of the enumeration value.
character string whose value is the name of the enumeration value.
</ul>
</ul>
==See also==
{{Template:XPathError:Reason footer}}

Revision as of 20:42, 25 March 2011

Enumerated cause of the exception (XPathError class)

[Introduced in Sirius Mods 7.8]

Syntax

%xPathErrorReason = xPathError:Reason

Syntax terms

%reason This XPathErrorReason enumeration value describes the reason for the translation failure.
%XPathErr An XPathError object.

Usage notes

  • An XPathErrorReason enumeration may have one of the following values:
    SyntaxError
    A violation of the syntax of an XPath expression.
    EmptyResult
    There are no nodes matched by the XPath expression, and the method requires at least one matching node.
  • As with all enumerations, you use the ToString method to convert an enumeration value to a character string whose value is the name of the enumeration value.

See also