View Javadoc
1   /*
2    * Copyright 2012 Olivier Godineau
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5    * use this file except in compliance with the License. You may obtain a copy of
6    * the License at http://www.apache.org/licenses/LICENSE-2.0
7    * 
8    * Unless required by applicable law or agreed to in writing, software
9    * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11   * License for the specific language governing permissions and limitations under
12   * the License.
13   */
14  package olg.csv.base;
15  
16  /**
17   * Exception thrown during reading.
18   * 
19   * @author Olivier Godineau
20   * 
21   */
22  public class ReaderException extends RuntimeException {
23  	/**
24  	 * Constructs a new exception with <code>null</code> as its detail message.
25  	 */
26  	public ReaderException() {
27  		super();
28  
29  	}
30  	/**
31  	 * Constructs a new exception with the specified detail message and cause.
32  	 * 
33  	 * @param message
34  	 *            the detail message
35  	 * @param cause
36  	 *            the cause (which is saved for later retrieval by the
37  	 *            {@link #getCause()} method).
38  	 */
39  	public ReaderException(final String message, final Throwable cause) {
40  		super(message, cause);
41  
42  	}
43  	/**
44  	 * Constructs a new exception with the specified detail message.
45  	 * 
46  	 * @param message
47  	 *            the detail message.
48  	 */
49  	public ReaderException(final String message) {
50  		super(message);
51  
52  	}
53  	/**
54  	 * Constructs a new exception with the specified cause.
55  	 * 
56  	 * @param cause
57  	 *            the cause (which is saved for later retrieval by the
58  	 *            {@link #getCause()} method).
59  	 */
60  	public ReaderException(final Throwable cause) {
61  		super(cause);
62  
63  	}
64  
65  	/**
66  	 * 
67  	 */
68  	private static final long serialVersionUID = 2L;
69  
70  }