KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > dom > xpath > XPathException


1 /*
2  * Copyright (c) 2002 World Wide Web Consortium,
3  * (Massachusetts Institute of Technology, Institut National de
4  * Recherche en Informatique et en Automatique, Keio University). All
5  * Rights Reserved. This program is distributed under the W3C's Software
6  * Intellectual Property License. This program is distributed in the
7  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  * PURPOSE.
10  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11  */

12
13 package org.w3c.dom.xpath;
14
15 /**
16  * A new exception has been created for exceptions specific to these XPath
17  * interfaces.
18  * <p>See also the <a HREF='http://www.w3.org/2002/08/WD-DOM-Level-3-XPath-20020820'>Document Object Model (DOM) Level 3 XPath Specification</a>.
19  */

20 public class XPathException extends RuntimeException JavaDoc {
21     public XPathException(short code, String JavaDoc message) {
22        super(message);
23        this.code = code;
24     }
25     public short code;
26     // XPathExceptionCode
27
/**
28      * If the expression has a syntax error or otherwise is not a legal
29      * expression according to the rules of the specific
30      * <code>XPathEvaluator</code> or contains specialized extension
31      * functions or variables not supported by this implementation.
32      */

33     public static final short INVALID_EXPRESSION_ERR = 1;
34     /**
35      * If the expression cannot be converted to return the specified type.
36      */

37     public static final short TYPE_ERR = 2;
38
39 }
40
Popular Tags