View Javadoc
1   package org.opentrafficsim.road.gtu;
2   
3   import org.opentrafficsim.base.OtsRuntimeException;
4   
5   /**
6    * Throw when a collision is detected.
7    * <p>
8    * Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
9    * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
10   * </p>
11   * @author Alexander Verbraeck
12   * @author Peter Knoppers
13   * @author Wouter Schakel
14   */
15  public class CollisionException extends OtsRuntimeException
16  {
17  
18      /** Serialization version UID. */
19      private static final long serialVersionUID = 20150217L;
20  
21      /**
22       * Constructor.
23       */
24      public CollisionException()
25      {
26      }
27  
28      /**
29       * Constructor.
30       * @param message String
31       */
32      public CollisionException(final String message)
33      {
34          super(message);
35      }
36  
37      /**
38       * Constructor.
39       * @param cause Throwable
40       */
41      public CollisionException(final Throwable cause)
42      {
43          super(cause);
44      }
45  
46      /**
47       * Constructor.
48       * @param message String
49       * @param cause Throwable
50       */
51      public CollisionException(final String message, final Throwable cause)
52      {
53          super(message, cause);
54      }
55  
56  }