Reason (XPathError property)

From m204wiki
Revision as of 20:42, 25 March 2011 by DmeWiccan (talk | contribs) (1 revision)
Jump to navigation Jump to search

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