blob: 0f469900175f2b0339b6588608da58c5dc87dc1d [file] [log] [blame]
/*
* Copyright (c) 2009-2013, JoshuaTree. All Rights Reserved.
*/
package us.jts.fortress;
/**
* This exception extends {@link SecurityException} and is thrown when DAO cannot create entity.
* See the {@link GlobalErrIds} javadoc for list of error ids.
*
* @author Shawn McKinney
*/
public class CreateException extends SecurityException
{
/**
* Create an exception with an error code that maps to {@link GlobalErrIds} and message text.
* @param errorId see {@link GlobalErrIds} for list of valid error codes that can be set. Valid values between 0 & 100_000.
* @param msg contains textual information including method of origin and description of the root cause.
*/
public CreateException(int errorId, String msg)
{
super(errorId, msg);
}
/**
* Create exception with error id, message and related exception.
* @param errorId see {@link GlobalErrIds} for list of valid error codes that can be set. Valid values between 0 & 100_000.
* @param msg contains textual information including method of origin and description of the root cause.
* @param previousException contains reference to related exception which usually is system related, i.e. ldap.
*/
public CreateException(int errorId, String msg, Exception previousException)
{
super(errorId, msg, previousException);
}
}