View Javadoc
1   package org.djunits.unit.util;
2   
3   /**
4    * Runtime Exceptions in Unit package.
5    * <p>
6    * Copyright (c) 2013-2024 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 UnitRuntimeException extends RuntimeException
12  {
13  
14      /** */
15      private static final long serialVersionUID = 20190821L;
16  
17      /**
18       * Construct a new UnitRuntimeException with all default values.
19       */
20      public UnitRuntimeException()
21      {
22          // Nothing to do here
23      }
24  
25      /**
26       * Construct a new UnitRuntimeException.
27       * @param message String; String
28       * @param cause Throwable; Throwable
29       * @param enableSuppression boolean;am
30       * @param writableStackTrace boolean; boolean
31       */
32      public UnitRuntimeException(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 UnitRuntimeException with some default values.
40       * @param message String; String
41       * @param cause Throwable; Throwable
42       */
43      public UnitRuntimeException(final String message, final Throwable cause)
44      {
45          super(message, cause);
46      }
47  
48      /**
49       * Construct a new UnitRuntimeException with some default values.
50       * @param message String; String
51       */
52      public UnitRuntimeException(final String message)
53      {
54          super(message);
55      }
56  
57      /**
58       * Construct a new UnitRuntimeException with some default values.
59       * @param cause Throwable; Throwable
60       */
61      public UnitRuntimeException(final Throwable cause)
62      {
63          super(cause);
64      }
65  
66  }