1 package org.djunits.vecmat;
2
3 /**
4 * NonInvertibleMatrixException is throws on inverting a singular matrix.
5 * <p>
6 * Copyright (c) 2025-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See
7 * for project information <a href="https://djunits.org" target="_blank">https://djunits.org</a>. The DJUNITS project is
8 * distributed under a <a href="https://djunits.org/docs/license.html" target="_blank">three-clause BSD-style license</a>.
9 * @author Alexander Verbraeck
10 */
11 public class NonInvertibleMatrixException extends Exception
12 {
13 /** */
14 private static final long serialVersionUID = 600L;
15
16 /**
17 * Create a NonInvertibleMatrixException without any explanation.
18 */
19 public NonInvertibleMatrixException()
20 {
21 }
22
23 /**
24 * Create a NonInvertibleMatrixException with a message.
25 * @param message the message to include
26 */
27 public NonInvertibleMatrixException(final String message)
28 {
29 super(message);
30 }
31
32 /**
33 * Create a NonInvertibleMatrixException with a cause.
34 * @param cause the cause to include
35 */
36 public NonInvertibleMatrixException(final Throwable cause)
37 {
38 super(cause);
39 }
40
41 /**
42 * Create a NonInvertibleMatrixException with a message and a cause.
43 * @param message the message to include
44 * @param cause the cause to include
45 */
46 public NonInvertibleMatrixException(final String message, final Throwable cause)
47 {
48 super(message, cause);
49 }
50
51 }