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