1 package org.apache.lucene.index;
3 * Copyright 2004 The Apache Software Foundation
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 public class FieldReaderException extends RuntimeException{
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}.
28 public FieldReaderException() {
32 * Constructs a new runtime exception with the specified cause and a
33 * detail message of <tt>(cause==null ? null : cause.toString())</tt>
34 * (which typically contains the class and detail message of
37 * This constructor is useful for runtime exceptions
38 * that are little more than wrappers for other throwables.
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
46 public FieldReaderException(Throwable cause) {
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}.
55 * @param message the detail message. The detail message is saved for
56 * later retrieval by the {@link #getMessage()} method.
58 public FieldReaderException(String message) {
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.
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
76 public FieldReaderException(String message, Throwable cause) {
77 super(message, cause);