![JAR search and dependency download from the Maven repository](/logo.png)
nyla.solutions.global.exception.SystemException Maven / Gradle / Ivy
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 SystemException extends FaultException
{
public static final String DEFAULT_ERROR_CODE = "S0000";
public static final String DEFAULT_ERROR_CATEGORY = "SYSTEM";
/**
*
*/
public SystemException()
{
super("Internal system error.");
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// ---------------------------------------------
/**
* @param aMesssage the exception message
*/
public SystemException(String aMesssage)
{
super(aMesssage);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// --------------------------------------------
/**
* @param arg0
* @param aThrowable
*/
public SystemException(String arg0, Throwable aThrowable)
{
super(arg0, aThrowable);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CATEGORY);
}// ---------------------------------------------
/**
* @param aThrowable
*/
public SystemException(Throwable aThrowable)
{
super(aThrowable);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CODE);
}// ---------------------------------------------
/**
* @param aID integer value in the SystemException.properties file
* @param aMesa
*/
public SystemException(int aID, String aMessage)
{
this(String.valueOf(aID), aMessage);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CODE);
}// ---------------------------------------------
public SystemException(String message, String notes, String programName,
String functionName, String errorCategory, String errorCode)
{
super(message, notes, programName, functionName, errorCategory,
errorCode);
}
public SystemException(String message, String functionName,
String errorCategory, String errorCode, String programName)
{
super(message, functionName, errorCategory, errorCode, programName);
}
public SystemException(String aID, String aMessage)
{
super(aID, aMessage);
this.setCategory(DEFAULT_ERROR_CATEGORY);
this.setCode(DEFAULT_ERROR_CODE);
}
public SystemException(String message, Throwable cause,
String functionName, String errorCategory, String errorCode,
String programName)
{
super(message, cause, functionName, errorCategory, errorCode,
programName);
}
public SystemException(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 SystemException(String aID, Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy