KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > search > BadQueryException


1 /*
2  * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/search/BadQueryException.java,v 1.7 2004/07/28 09:35:12 ib Exp $
3  * $Revision: 1.7 $
4  * $Date: 2004/07/28 09:35:12 $
5  *
6  * ====================================================================
7  *
8  * Copyright 1999-2002 The Apache Software Foundation
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */

23
24 package org.apache.slide.search;
25
26 /**
27  * Generic search exception. Query could not be executed. The request may
28  * be malformed (not valid XML for example). Additionally, this can be used
29  * for invalid scopes and search redirections.
30  *
31  * @version $Revision: 1.7 $
32  */

33 public class BadQueryException extends SearchException {
34     
35     // ----------------------------------------------------------- Constructors
36

37     
38     /**
39      * Constructor.
40      *
41      * @param message Exception message
42      */

43     public BadQueryException (String JavaDoc message) {
44         super (message);
45     }
46     
47     /**
48      * Constructor.
49      *
50      * @param t root cause
51      */

52     public BadQueryException (Throwable JavaDoc t) {
53         this ("", t);
54     }
55     
56     
57     /**
58      * Constructor.
59      *
60      * @param message Exception message
61      * @param t root cause
62      */

63     public BadQueryException (String JavaDoc message, Throwable JavaDoc t) {
64         super (message, t);
65     }
66 }
67
Popular Tags