Reason (XPathError property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with " <span class="pageSubtitle"><section begin=dpl_desc/>XPathErrorReason enumeration value indicating the type of error causing the exception<section end=dpl_desc/></span> [[Categor...")
 
m (1 revision)
(No difference)

Revision as of 21:43, 16 January 2011

<section begin=dpl_desc/>XPathErrorReason enumeration value indicating the type of error causing the exception<section end=dpl_desc/>

Reason is a member of the XPathError class.

Syntax

%reason = %XPathErr: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.