1 package org.opentrafficsim.core.gtu;
2
3 /**
4 * Exception thrown when GTU encounters a problem.
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://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a>
11 */
12 public class GtuException extends Exception
13 {
14
15 /** */
16 private static final long serialVersionUID = 20150217L;
17
18 /**
19 *
20 */
21 public GtuException()
22 {
23 }
24
25 /**
26 * @param message String; String
27 */
28 public GtuException(final String message)
29 {
30 super(message);
31 }
32
33 /**
34 * @param cause Throwable; Throwable
35 */
36 public GtuException(final Throwable cause)
37 {
38 super(cause);
39 }
40
41 /**
42 * @param message String; String
43 * @param cause Throwable; Throwable
44 */
45 public GtuException(final String message, final Throwable cause)
46 {
47 super(message, cause);
48 }
49
50 /**
51 * @param message String; description of the problem
52 * @param cause Throwable; the cause of this Exception
53 * @param enableSuppression boolean; whether or not suppression is enabled or disabled
54 * @param writableStackTrace boolean; whether or not the stack trace should be writable
55 */
56 public GtuException(final String message, final Throwable cause, final boolean enableSuppression,
57 final boolean writableStackTrace)
58 {
59 super(message, cause, enableSuppression, writableStackTrace);
60 }
61 }