All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nyla.solutions.core.exception.IntegrityConstraintException Maven / Gradle / Ivy

package nyla.solutions.core.exception;

/**
 * 
 * IntegrityConstraintException represents a data exception
 * 
* @author Gregory Green * @version 1.0 */ public class IntegrityConstraintException extends DataException { public static final String DEFAULT_ERROR_CODE = "IC001"; public static final String DEFAULT_INTEGRITY_CONSTRAINT_ERROR_MSG = "Integrity Constraint"; /** * Constructor for IntegrityConstraintException initializes internal * data settings. * */ public IntegrityConstraintException() { super(DEFAULT_INTEGRITY_CONSTRAINT_ERROR_MSG); this.setCode(DEFAULT_ERROR_CODE); } /** * Constructor for IntegrityConstraintException initializes internal * data settings. * @param message the error message */ public IntegrityConstraintException(String message) { super(message); this.setCode(DEFAULT_ERROR_CODE); } /** * Constructor for IntegrityConstraintException initializes internal * data settings. * @param message the error message * @param aThrowable */ public IntegrityConstraintException(String message, Throwable aThrowable) { super(message, aThrowable); this.setCode(DEFAULT_ERROR_CODE); } /** * Constructor for IntegrityConstraintException initializes internal * data settings. * @param throwableException */ public IntegrityConstraintException(Throwable throwableException) { super(throwableException); this.setCode(DEFAULT_ERROR_CODE); } static final long serialVersionUID = IntegrityConstraintException.class.getName() .hashCode(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy