
nyla.solutions.core.exception.IntegrityConstraintException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.core Show documentation
Show all versions of nyla.solutions.core Show documentation
This Java API provides support for application utilities (application configuration, data encryption, debugger, text processing, and more).
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