View Javadoc
1   package org.opentrafficsim.base.geometry;
2   
3   import org.opentrafficsim.base.OtsRuntimeException;
4   
5   /**
6    * Exception when geometry is incorrectly specified or an operation is requested that is not possible.
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 OtsGeometryException extends OtsRuntimeException
16  {
17  
18      /** Serialization version UID. */
19      private static final long serialVersionUID = 20150722L;
20  
21      /**
22       * Empty constructor.
23       */
24      public OtsGeometryException()
25      {
26      }
27  
28      /**
29       * Constructor with message.
30       * @param message message to display for this exception.
31       */
32      public OtsGeometryException(final String message)
33      {
34          super(message);
35      }
36  
37      /**
38       * Constructor with cause.
39       * @param cause the exception that triggered this exception.
40       */
41      public OtsGeometryException(final Throwable cause)
42      {
43          super(cause);
44      }
45  
46      /**
47       * Constructor with message and cause.
48       * @param message message to display for this exception.
49       * @param cause the exception that triggered this exception.
50       */
51      public OtsGeometryException(final String message, final Throwable cause)
52      {
53          super(message, cause);
54      }
55  
56  }