View Javadoc
1   package org.djutils.draw;
2   
3   /**
4    * DrawRuntimeException is the root exception for drawing exceptions that do not have to be specified.
5    * <p>
6    * Copyright (c) 2020-2021 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
7    * BSD-style license. See <a href="https://djutils.org/docs/current/djutils/licenses.html">DJUTILS License</a>.
8    * </p>
9    * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
10   * @author <a href="https://www.tudelft.nl/pknoppers">Peter Knoppers</a>
11   */
12  public class DrawRuntimeException extends RuntimeException
13  {
14      /** */
15      private static final long serialVersionUID = 20200828L;
16  
17      /**
18       * Create an empty runtime drawing exception.
19       */
20      public DrawRuntimeException()
21      {
22          super();
23      }
24  
25      /**
26       * Create a runtime drawing exception with a custom message.
27       * @param message String; the custom message.
28       */
29      public DrawRuntimeException(final String message)
30      {
31          super(message);
32      }
33  
34      /**
35       * Create a runtime drawing exception with an underlying cause.
36       * @param cause Throwable; the cause of this exception to be thrown
37       */
38      public DrawRuntimeException(final Throwable cause)
39      {
40          super(cause);
41      }
42  
43      /**
44       * Create a runtime drawing exception with a custom message and an underlying cause.
45       * @param message String; the custom message
46       * @param cause Throwable; the cause of this exception to be thrown
47       */
48      public DrawRuntimeException(final String message, final Throwable cause)
49      {
50          super(message, cause);
51      }
52  
53  }