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 writing.
18   * 
19   * @author Olivier Godineau
20   * 
21   */
22  public class WriterException extends RuntimeException {
23  
24  	/**
25  	 * 
26  	 */
27  	private static final long serialVersionUID = 2L;
28  
29  	/**
30  	 * Constructs a new exception with <code>null</code> as its detail message.
31  	 */
32  	public WriterException() {
33  		super();
34  	}
35  	/**
36  	 * Constructs a new exception with the specified detail message and cause.
37  	 * 
38  	 * @param message
39  	 *            the detail message
40  	 * @param cause
41  	 *            the cause (which is saved for later retrieval by the
42  	 *            {@link #getCause()} method).
43  	 */
44  	public WriterException(String message, Throwable cause) {
45  		super(message, cause);
46  	}
47  	/**
48  	 * Constructs a new exception with the specified detail message.
49  	 * 
50  	 * @param message
51  	 *            the detail message.
52  	 */
53  	public WriterException(String message) {
54  		super(message);
55  	}
56  
57  	/**
58  	 * Constructs a new exception with the specified cause.
59  	 * 
60  	 * @param cause
61  	 *            the cause (which is saved for later retrieval by the
62  	 *            {@link #getCause()} method).
63  	 */
64  	public WriterException(Throwable cause) {
65  		super(cause);
66  	}
67  
68  }