1 package org.opentrafficsim.base.parameters;
2
3 /**
4 * Throwable for exceptions regarding parameters.
5 * <p>
6 * Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
7 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
8 * </p>
9 * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
10 * @author <a href="https://dittlab.tudelft.nl">Wouter Schakel</a>
11 */
12 public class ParameterException extends Exception
13 {
14
15 /** Serialization id. */
16 private static final long serialVersionUID = 20160325L;
17
18 /**
19 * Empty constructor.
20 */
21 public ParameterException()
22 {
23 }
24
25 /**
26 * Constructor with message.
27 * @param message String; Message.
28 */
29 public ParameterException(final String message)
30 {
31 super(message);
32 }
33
34 /**
35 * Constructor with cause.
36 * @param cause Throwable; Cause.
37 */
38 public ParameterException(final Throwable cause)
39 {
40 super(cause);
41 }
42
43 /**
44 * Constructor with message and cause.
45 * @param message String; Message.
46 * @param cause Throwable; Cause.
47 */
48 public ParameterException(final String message, final Throwable cause)
49 {
50 super(message, cause);
51 }
52
53 /**
54 * Constructor with message and cause.
55 * @param message String; Message.
56 * @param cause Throwable; Cause.
57 * @param enableSuppression boolean; Whether to enable suppression.
58 * @param writableStackTrace boolean; Whether or not the stack trace should be writable.
59 */
60 public ParameterException(final String message, final Throwable cause, final boolean enableSuppression,
61 final boolean writableStackTrace)
62 {
63 super(message, cause, enableSuppression, writableStackTrace);
64 }
65 }