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