nyla.solutions.global.exception.DataException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.global Show documentation
Show all versions of nyla.solutions.global Show documentation
Nyla Solutions Global Java API provides support for basic application
utilities (application configuration, data encryption, debugger and text
processing).
The newest version!
package nyla.solutions.global.exception;
/**
* @author Gregory Green
* @version 1.0
*
* SystemException default system exception runtime exception
*
*/
import java.util.Map;
import nyla.solutions.global.exception.fault.FaultException;
public class DataException extends FaultException
{
public static final String DEFAULT_ERROR_CODE = "D0000";
public static final String DEFAULT_ERROR_CATEGORY = "DATA";
/**
*
*/
public DataException()
{
super("Internal system error.");
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// ---------------------------------------------
/**
* @param aMesssage the exception message
*/
public DataException(String aMesssage)
{
super(aMesssage);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// --------------------------------------------
/**
* @param arg0
* @param aThrowable
*/
public DataException(String arg0, Throwable aThrowable)
{
super(arg0, aThrowable);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// ---------------------------------------------
/**
* @param aThrowable
*/
public DataException(Throwable aThrowable)
{
super(aThrowable);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// ---------------------------------------------
/**
* @param aID integer value in the SystemException.properties file
* @param aMesa
*/
public DataException(int aID, String aMessage)
{
this(String.valueOf(aID), aMessage);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// ---------------------------------------------
public DataException(String message, String notes, String programName,
String functionName, String errorCategory, String errorCode)
{
super(message, notes, programName, functionName, errorCategory,
errorCode);
}
public DataException(String message, String functionName,
String errorCategory, String errorCode, String programName)
{
super(message, functionName, errorCategory, errorCode, programName);
}
public DataException(String aID, String aMessage)
{
super(aID, aMessage);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}
public DataException(String message, Throwable cause,
String functionName, String errorCategory, String errorCode,
String programName)
{
super(message, cause, functionName, errorCategory, errorCode,
programName);
}
public DataException(Throwable cause, String functionName,
String errorCategory, String errorCode, String programName)
{
super(cause, functionName, errorCategory, errorCode, programName);
}
/**
*
* Constructor for SystemException initializes internal data settings.
*
* @param aID the key in the exception property file
* @param aBindValues the bind exception
*/
public DataException(String aID, Map