public class

XPathException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.w3c.dom.xpath.XPathException

Class Overview

A new exception has been created for exceptions specific to these XPath interfaces.

See also the Document Object Model (DOM) Level 3 XPath Specification.

Summary

Constants
short INVALID_EXPRESSION_ERR If the expression has a syntax error or otherwise is not a legal expression according to the rules of the specific XPathEvaluator or contains specialized extension functions or variables not supported by this implementation.
short TYPE_ERR If the expression cannot be converted to return the specified type.
Fields
public short code
Public Constructors
XPathException(short code, String message)
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final short INVALID_EXPRESSION_ERR

If the expression has a syntax error or otherwise is not a legal expression according to the rules of the specific XPathEvaluator or contains specialized extension functions or variables not supported by this implementation.

Constant Value: 1 (0x00000001)

public static final short TYPE_ERR

If the expression cannot be converted to return the specified type.

Constant Value: 2 (0x00000002)

Fields

public short code

Public Constructors

public XPathException (short code, String message)