|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FieldReaderException | Line # 22 | 3 | 4 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 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 | 0 |
public FieldReaderException() { |
| 29 | } | |
| 30 | ||
| 31 | /** | |
| 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 | |
| 35 | * <tt>cause</tt>). This constructor is useful for runtime exceptions | |
| 36 | * that are little more than wrappers for other throwables. | |
| 37 | * | |
| 38 | * @param cause the cause (which is saved for later retrieval by the | |
| 39 | * {@link #getCause()} method). (A <tt>null</tt> value is | |
| 40 | * permitted, and indicates that the cause is nonexistent or | |
| 41 | * unknown.) | |
| 42 | * @since 1.4 | |
| 43 | */ | |
| 44 | 0 |
public FieldReaderException(Throwable cause) { |
| 45 | 0 | super(cause); |
| 46 | } | |
| 47 | ||
| 48 | /** | |
| 49 | * Constructs a new runtime exception with the specified detail message. | |
| 50 | * The cause is not initialized, and may subsequently be initialized by a | |
| 51 | * call to {@link #initCause}. | |
| 52 | * | |
| 53 | * @param message the detail message. The detail message is saved for | |
| 54 | * later retrieval by the {@link #getMessage()} method. | |
| 55 | */ | |
| 56 | 0 |
public FieldReaderException(String message) { |
| 57 | 0 | super(message); |
| 58 | } | |
| 59 | ||
| 60 | /** | |
| 61 | * Constructs a new runtime exception with the specified detail message and | |
| 62 | * cause. <p>Note that the detail message associated with | |
| 63 | * <code>cause</code> is <i>not</i> automatically incorporated in | |
| 64 | * this runtime exception's detail message. | |
| 65 | * | |
| 66 | * @param message the detail message (which is saved for later retrieval | |
| 67 | * by the {@link #getMessage()} method). | |
| 68 | * @param cause the cause (which is saved for later retrieval by the | |
| 69 | * {@link #getCause()} method). (A <tt>null</tt> value is | |
| 70 | * permitted, and indicates that the cause is nonexistent or | |
| 71 | * unknown.) | |
| 72 | * @since 1.4 | |
| 73 | */ | |
| 74 | 0 |
public FieldReaderException(String message, Throwable cause) { |
| 75 | 0 | super(message, cause); |
| 76 | } | |
| 77 | } | |
|
||||||||||