1 package org.djutils.draw;
2
3 /**
4 * InternalCalculationException is an exception that is thrown when a a method fails during the construction of a drawable
5 * object or during the calculation of a property of a drawable object.
6 * <p>
7 * Copyright (c) 2020-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
8 * BSD-style license. See <a href="https://djutils.org/docs/current/djutils/licenses.html">DJUTILS License</a>.
9 * </p>
10 * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
11 * @author <a href="https://github.com/peter-knoppers">Peter Knoppers</a>
12 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
13 */
14 public class InternalCalculationException extends RuntimeException
15 {
16 /** */
17 private static final long serialVersionUID = 20200828L;
18
19 /**
20 * Create an empty runtime calculation exception, indicating an error during the construction of a drawable object or during
21 * the calculation of a property of a drawable object.
22 */
23 public InternalCalculationException()
24 {
25 super();
26 }
27
28 /**
29 * Create a runtime calculation exception with a custom message, indicating an error during the construction of a drawable
30 * object or during the calculation of a property of a drawable object.
31 * @param message the custom message.
32 */
33 public InternalCalculationException(final String message)
34 {
35 super(message);
36 }
37
38 /**
39 * Create a runtime calculation exception with an underlying cause, indicating an error during the construction of a
40 * drawable object or during the calculation of a property of a drawable object.
41 * @param cause the cause of this exception to be thrown
42 */
43 public InternalCalculationException(final Throwable cause)
44 {
45 super(cause);
46 }
47
48 /**
49 * Create a runtime calculation exception with a custom message and an underlying cause, indicating an error during the
50 * construction of a drawable object or during the calculation of a property of a drawable object.
51 * @param message the custom message
52 * @param cause the cause of this exception to be thrown
53 */
54 public InternalCalculationException(final String message, final Throwable cause)
55 {
56 super(message, cause);
57 }
58
59 }