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.bean.parser;
15  
16  /**
17   * Exception thrown when an error occurs during parsing String into Bean.
18   * 
19   * 
20   */
21  public class ParseException extends RuntimeException {
22  	/**
23   * 
24   */
25  	private static final long serialVersionUID = 1L;
26  
27  	/**
28  	 * Constructs a new parse exception with <code>null</code> as its detail
29  	 * message.
30  	 */
31  	public ParseException() {
32  		super();
33  	}
34  
35  	/**
36  	 * Constructs a new Parse exception with the specified detail message.
37  	 * 
38  	 * @param message
39  	 *            the detail message.
40  	 */
41  	public ParseException(String message) {
42  		super(message);
43  
44  	}
45  	/**
46  	 * Constructs a new parse exception with the specified cause and a detail
47  	 * message of <tt>(cause==null ? null : cause.toString())</tt>.
48  	 * 
49  	 * @param cause
50  	 *            the cause (which is saved for later retrieval by the
51  	 *            {@link #getCause()} method).
52  	 */
53  	public ParseException(Throwable cause) {
54  		super(cause);
55  
56  	}
57  	/**
58  	 * Constructs a new parse exception with the specified detail message and
59  	 * cause.
60  	 * 
61  	 * @param message
62  	 *            the detail message.
63  	 * @param cause
64  	 *            the cause.
65  	 */
66  	public ParseException(String message, Throwable cause) {
67  		super(message, cause);
68  
69  	}
70  
71  }