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