1   /*
2    * SPDX-FileCopyrightText: none
3    * SPDX-License-Identifier: CC0-1.0
4    */
5   
6   package gov.nist.secauto.metaschema.core.model;
7   
8   public class MetaschemaException
9       extends Exception {
10  
11    /**
12     * The serial version UID.
13     */
14    private static final long serialVersionUID = 1L;
15  
16    /**
17     * Create a new Metaschema exception with a provided message.
18     *
19     * @param message
20     *          text describing the cause of the exception
21     */
22    public MetaschemaException(String message) {
23      super(message);
24    }
25  
26    /**
27     * Create a new Metaschema exception based on the provided cause.
28     *
29     * @param cause
30     *          the exception that caused this exception
31     */
32    public MetaschemaException(Throwable cause) {
33      super(cause);
34    }
35  
36    /**
37     * Create a new Metaschema exception with a provided message based on the
38     * provided cause.
39     *
40     * @param message
41     *          text describing the cause of the exception
42     * @param cause
43     *          the exception that caused this exception
44     */
45    public MetaschemaException(String message, Throwable cause) {
46      super(message, cause);
47    }
48  
49    /**
50     * Create a new Metaschema exception with a provided message based on the
51     * provided cause.
52     *
53     *
54     * @param message
55     *          text describing the cause of the exception
56     * @param cause
57     *          the exception that caused this exception
58     * @param enableSuppression
59     *          whether or not suppression is enabled or disabled
60     * @param writableStackTrace
61     *          whether or not the stack trace should be writable
62     */
63    public MetaschemaException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
64      super(message, cause, enableSuppression, writableStackTrace);
65    }
66  
67  }