1 /*
2 * SPDX-FileCopyrightText: none
3 * SPDX-License-Identifier: CC0-1.0
4 */
5
6 package gov.nist.secauto.metaschema.core.model;
7
8 /**
9 * Identifies that an unexpected error occurred while initializing or using a
10 * Metaschema-based model.
11 */
12 public class ModelInitializationException
13 extends IllegalStateException {
14
15 /**
16 * the serial version UID.
17 */
18 private static final long serialVersionUID = 1L;
19
20 /**
21 * Constructs a new exception with the provided {@code message} and no cause.
22 *
23 * @param message
24 * the exception message
25 */
26 public ModelInitializationException(String message) {
27 super(message);
28 }
29
30 /**
31 * Constructs a new exception with the provided {@code cause}.
32 * <p>
33 * The message used will be the message provided by the underlying cause.
34 *
35 * @param cause
36 * the original exception cause
37 */
38 public ModelInitializationException(Throwable cause) {
39 super(cause);
40 }
41
42 /**
43 * Constructs a new exception with the provided {@code message} and
44 * {@code cause}.
45 *
46 * @param message
47 * the exception message
48 * @param cause
49 * the original exception cause
50 */
51 public ModelInitializationException(String message, Throwable cause) {
52 super(message, cause);
53 }
54 }