public abstract class AbstractApplicationException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Level | DEFAULT_SEVERITY
The default severity to use when logging exceptions.
|
static java.lang.String | EMPTY_MSG
Constant representing an empty message.
|
Constructor and Description |
---|
AbstractApplicationException()
Default Constructor
|
AbstractApplicationException(java.lang.String astrMessage)
Creates the ApplicationException.
|
AbstractApplicationException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName)
Creates the ApplicationException.
|
AbstractApplicationException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String aResourceBundle, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the ApplicationException.
|
AbstractApplicationException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the ApplicationException.
|
AbstractApplicationException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName)
Creates the ApplicationException.
|
AbstractApplicationException(java.lang.String astrMessageKey, java.lang.String aLocalizedMsg, java.lang.String aErrorCode, java.lang.Object[] aParams, java.lang.String aResourceBundle, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the ApplicationException.
|
AbstractApplicationException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the ApplicationException.
|
Modifier and Type | Method and Description |
---|---|
void | addApplicationError(ApplicationError applicationError)
This method adds an application error to the application exception.
|
void | addApplicationError(java.util.List applicationErrors)
This method adds a list of application errors to the application exception.
|
protected java.lang.String | generateCorrelationId(java.lang.Throwable aThrowable)
Generate correlation id for exception caused by the input throwable.
|
java.util.List | getApplicationErrors()
Returns the application errors
|
java.lang.String | getCorrelationId()
Get the correlation Id for this exception The correlation Id for this exception.
|
java.lang.String | getErrorCode()
Get a error code of this Throwable.
|
java.lang.String | getLocalizedMessage()
Get a localized description of this Throwable.
|
java.lang.String | getLocalizedMessage(java.util.Locale aLocale)
Get the exception message localized to a different locale.
|
java.lang.String | getMessage()
Returns the error message string of this throwable object.
|
java.lang.String | getMessageKey()
Return the message key.
|
java.lang.Object[] | getMessageParams()
Return the message parameters.
|
public static final java.util.logging.Level DEFAULT_SEVERITY
public static final java.lang.String EMPTY_MSG
public AbstractApplicationException()
public AbstractApplicationException(java.lang.String astrMessage)
public AbstractApplicationException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName)
public AbstractApplicationException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName)
public AbstractApplicationException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
public AbstractApplicationException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
public AbstractApplicationException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String aResourceBundle, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
public AbstractApplicationException(java.lang.String astrMessageKey, java.lang.String aLocalizedMsg, java.lang.String aErrorCode, java.lang.Object[] aParams, java.lang.String aResourceBundle, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
public java.lang.String getLocalizedMessage()
public java.lang.String getErrorCode()
public java.lang.String getLocalizedMessage(java.util.Locale aLocale)
public java.lang.String getMessage()
public java.lang.String getMessageKey()
public java.lang.Object[] getMessageParams()
public java.lang.String getCorrelationId()
protected java.lang.String generateCorrelationId(java.lang.Throwable aThrowable)
public void addApplicationError(ApplicationError applicationError)
public void addApplicationError(java.util.List applicationErrors)
public java.util.List getApplicationErrors()