1 package org.opentrafficsim.base;
2
3 /**
4 * OtsException is a generic exception for the OTS project.
5 * <p>
6 * Copyright (c) 2013-2024 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 */
11 public class OtsException extends Exception
12 {
13 /** */
14 private static final long serialVersionUID = 20220915L;
15
16 /**
17 * Create an exception without a message.
18 */
19 public OtsException()
20 {
21 super();
22 }
23
24 /**
25 * Create an exception with a message.
26 * @param message the message to include in the exception
27 */
28 public OtsException(final String message)
29 {
30 super(message);
31 }
32
33 /**
34 * Create an exception with an underlying cause.
35 * @param cause the underlying cause of the exception
36 */
37 public OtsException(final Throwable cause)
38 {
39 super(cause);
40 }
41
42 /**
43 * Create an exception with an underlying cause and a message.
44 * @param message the message to include in the exception
45 * @param cause the underlying cause of the exception
46 */
47 public OtsException(final String message, final Throwable cause)
48 {
49 super(message, cause);
50 }
51 }