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