1 package org.djunits.value;
2
3 /**
4 * Exception that is thrown for bad indices, or non-rectangular arrays, incompatible arrays or matrices, or empty arrays
5 * <p>
6 * Copyright (c) 2015-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/averbraeck">Alexander Verbraeck</a>
10 * @author <a href="https://www.tudelft.nl/staff/p.knoppers/">Peter Knoppers</a>
11 */
12 public class ValueRuntimeException extends RuntimeException
13 {
14 /** */
15 private static final long serialVersionUID = 20150626L;
16
17 /**
18 * Construct a new ValueException using default values for all fields.
19 */
20 public ValueRuntimeException()
21 {
22 // Nothing to do here
23 }
24
25 /**
26 * Construct a new ValueException with specified description.
27 * @param message description of the problem
28 */
29 public ValueRuntimeException(final String message)
30 {
31 super(message);
32 }
33
34 /**
35 * Construct a new ValueException with specified cause.
36 * @param cause the cause of this ValueException
37 */
38 public ValueRuntimeException(final Throwable cause)
39 {
40 super(cause);
41 }
42
43 /**
44 * Construct a new ValueException with specified description and cause.
45 * @param message description of the problem
46 * @param cause the cause of this ValueException
47 */
48 public ValueRuntimeException(final String message, final Throwable cause)
49 {
50 super(message, cause);
51 }
52
53 /**
54 * Construct a new ValueException specifying all fields.
55 * @param message description of the problem
56 * @param cause the cause of this ValueException
57 * @param enableSuppression whether or not suppression is enabled or disabled
58 * @param writableStackTrace whether or not the stack trace should be writable
59 */
60 public ValueRuntimeException(final String message, final Throwable cause, final boolean enableSuppression,
61 final boolean writableStackTrace)
62 {
63 super(message, cause, enableSuppression, writableStackTrace);
64 }
65
66 }