KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xpath > XPathException


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.impl.xpath;
18
19 /**
20  * XPath exception.
21  *
22  * @xerces.internal
23  *
24  * @author Andy Clark, IBM
25  *
26  * @version $Id: XPathException.java,v 1.7 2004/10/04 22:07:41 mrglavas Exp $
27  */

28 public class XPathException
29     extends Exception JavaDoc {
30
31     /** Serialization version. */
32     static final long serialVersionUID = -948482312169512085L;
33     
34     // Data
35

36     // hold the value of the key this Exception refers to.
37
private String JavaDoc fKey;
38     //
39
// Constructors
40
//
41

42     /** Constructs an exception. */
43     public XPathException() {
44         super();
45         fKey = "c-general-xpath";
46     } // <init>()
47

48     /** Constructs an exception with the specified key. */
49     public XPathException(String JavaDoc key) {
50         super();
51         fKey = key;
52     } // <init>(String)
53

54     public String JavaDoc getKey() {
55         return fKey;
56     } // getKey(): String
57

58 } // class XPathException
59
Popular Tags