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