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    * Indicates an error related to Metaschema processing.
10   */
11  public class MetaschemaException
12      extends Exception {
13  
14    /**
15     * The serial version UID.
16     */
17    private static final long serialVersionUID = 1L;
18  
19    /**
20     * Create a new Metaschema exception with a provided message.
21     *
22     * @param message
23     *          text describing the cause of the exception
24     */
25    public MetaschemaException(String message) {
26      super(message);
27    }
28  
29    /**
30     * Create a new Metaschema exception based on the provided cause.
31     *
32     * @param cause
33     *          the exception that caused this exception
34     */
35    public MetaschemaException(Throwable cause) {
36      super(cause);
37    }
38  
39    /**
40     * Create a new Metaschema exception with a provided message based on the
41     * provided cause.
42     *
43     * @param message
44     *          text describing the cause of the exception
45     * @param cause
46     *          the exception that caused this exception
47     */
48    public MetaschemaException(String message, Throwable cause) {
49      super(message, cause);
50    }
51  
52    /**
53     * Create a new Metaschema exception with a provided message based on the
54     * provided cause.
55     *
56     *
57     * @param message
58     *          text describing the cause of the exception
59     * @param cause
60     *          the exception that caused this exception
61     * @param enableSuppression
62     *          whether or not suppression is enabled or disabled
63     * @param writableStackTrace
64     *          whether or not the stack trace should be writable
65     */
66    public MetaschemaException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
67      super(message, cause, enableSuppression, writableStackTrace);
68    }
69  
70  }