001/* 002 * SPDX-FileCopyrightText: none 003 * SPDX-License-Identifier: CC0-1.0 004 */ 005 006package gov.nist.secauto.oscal.lib.profile.resolver; 007 008import edu.umd.cs.findbugs.annotations.NonNull; 009 010public class ProfileResolutionException 011 extends Exception { 012 013 /** 014 * the serial version UID. 015 */ 016 private static final long serialVersionUID = 1L; 017 018 /** 019 * Create a new profile resolution exception with the provided {@code message}. 020 * 021 * @param message 022 * a description of the error that occurred 023 */ 024 public ProfileResolutionException(String message) { 025 super(message); 026 } 027 028 /** 029 * Create a new profile resolution exception with the provided {@code message} 030 * based on the provided {@code cause}. 031 * 032 * @param message 033 * a description of the error that occurred 034 * @param cause 035 * the initial cause of the exception 036 */ 037 public ProfileResolutionException(String message, @NonNull Throwable cause) { 038 super(message, cause); 039 } 040}