1 package org.djunits.unit.util;
2
3 /**
4 * Exceptions in Unit package.
5 * <p>
6 * Copyright (c) 2013-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
7 * BSD-style license. See <a href="https://djunits.org/docs/license.html">DJUNITS License</a>.
8 * </p>
9 * @author <a href="https://www.tudelft.nl/staff/p.knoppers/">Peter Knoppers</a>
10 */
11 public class UnitException extends Exception
12 {
13
14 /** */
15 private static final long serialVersionUID = 20140618L;
16
17 /**
18 * Construct a new UnitException with all default values.
19 */
20 public UnitException()
21 {
22 // Nothing to do here
23 }
24
25 /**
26 * Construct a new UnitException.
27 * @param message String
28 * @param cause Throwable
29 * @param enableSuppression boolean
30 * @param writableStackTrace boolean
31 */
32 public UnitException(final String message, final Throwable cause, final boolean enableSuppression,
33 final boolean writableStackTrace)
34 {
35 super(message, cause, enableSuppression, writableStackTrace);
36 }
37
38 /**
39 * Construct a new UnitException with some default values.
40 * @param message String
41 * @param cause Throwable
42 */
43 public UnitException(final String message, final Throwable cause)
44 {
45 super(message, cause);
46 }
47
48 /**
49 * Construct a new UnitException with some default values.
50 * @param message String
51 */
52 public UnitException(final String message)
53 {
54 super(message);
55 }
56
57 /**
58 * Construct a new UnitException with some default values.
59 * @param cause Throwable
60 */
61 public UnitException(final Throwable cause)
62 {
63 super(cause);
64 }
65
66 }