1   /*
2    * SPDX-FileCopyrightText: none
3    * SPDX-License-Identifier: CC0-1.0
4    */
5   
6   package gov.nist.secauto.oscal.lib.profile.resolver;
7   
8   import edu.umd.cs.findbugs.annotations.NonNull;
9   
10  public class ProfileResolutionException
11      extends Exception {
12  
13    /**
14     * the serial version UID.
15     */
16    private static final long serialVersionUID = 1L;
17  
18    /**
19     * Create a new profile resolution exception with the provided {@code message}.
20     *
21     * @param message
22     *          a description of the error that occurred
23     */
24    public ProfileResolutionException(String message) {
25      super(message);
26    }
27  
28    /**
29     * Create a new profile resolution exception with the provided {@code message}
30     * based on the provided {@code cause}.
31     *
32     * @param message
33     *          a description of the error that occurred
34     * @param cause
35     *          the initial cause of the exception
36     */
37    public ProfileResolutionException(String message, @NonNull Throwable cause) {
38      super(message, cause);
39    }
40  }