pylucene 3.5.0-3
[pylucene.git] / lucene-java-3.5.0 / lucene / src / java / org / apache / lucene / index / FieldReaderException.java
1 package org.apache.lucene.index;
2 /**
3  * Copyright 2004 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 /**
19  *
20  *
21  **/
22 public class FieldReaderException extends RuntimeException{
23   /**
24    * Constructs a new runtime exception with <code>null</code> as its
25    * detail message.  The cause is not initialized, and may subsequently be
26    * initialized by a call to {@link #initCause}.
27    */
28   public FieldReaderException() {
29   }
30
31   /**
32    * Constructs a new runtime exception with the specified cause and a
33    * detail message of <tt>(cause==null &#63; null : cause.toString())</tt>
34    * (which typically contains the class and detail message of
35    * <tt>cause</tt>).  
36    * <p>
37    * This constructor is useful for runtime exceptions
38    * that are little more than wrappers for other throwables.
39    *
40    * @param cause the cause (which is saved for later retrieval by the
41    *              {@link #getCause()} method).  (A <tt>null</tt> value is
42    *              permitted, and indicates that the cause is nonexistent or
43    *              unknown.)
44    * @since 1.4
45    */
46   public FieldReaderException(Throwable cause) {
47     super(cause);
48   }
49
50   /**
51    * Constructs a new runtime exception with the specified detail message.
52    * The cause is not initialized, and may subsequently be initialized by a
53    * call to {@link #initCause}.
54    *
55    * @param message the detail message. The detail message is saved for
56    *                later retrieval by the {@link #getMessage()} method.
57    */
58   public FieldReaderException(String message) {
59     super(message);
60   }
61
62   /**
63    * Constructs a new runtime exception with the specified detail message and
64    * cause.  <p>Note that the detail message associated with
65    * <code>cause</code> is <i>not</i> automatically incorporated in
66    * this runtime exception's detail message.
67    *
68    * @param message the detail message (which is saved for later retrieval
69    *                by the {@link #getMessage()} method).
70    * @param cause   the cause (which is saved for later retrieval by the
71    *                {@link #getCause()} method).  (A <tt>null</tt> value is
72    *                permitted, and indicates that the cause is nonexistent or
73    *                unknown.)
74    * @since 1.4
75    */
76   public FieldReaderException(String message, Throwable cause) {
77     super(message, cause);
78   }
79 }