public abstract class AbstractSystemException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
static java.lang.String | EMPTY_MSG
Constant representing an empty message.
|
Constructor and Description |
---|
AbstractSystemException()
Creates the SystemException with the generic error.
|
AbstractSystemException(java.lang.String astrMessage)
Creates the SystemException.
|
AbstractSystemException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName)
Creates the SystemException.
|
AbstractSystemException(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 SystemException.
|
AbstractSystemException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the SystemException.
|
AbstractSystemException(java.lang.String astrMessageKey, java.lang.String astrLocalizedMessage, java.lang.Object[] aParams, java.lang.String astrErrorCode, java.lang.String aResourceBundle, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the SystemException.
|
AbstractSystemException(java.lang.String astrMessageKey, java.lang.String astrLocalizedMessage, java.lang.Object[] aParams, java.lang.String aResourceBundle, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the SystemException.
|
AbstractSystemException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName)
Creates the SystemException.
|
AbstractSystemException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
Creates the SystemException.
|
AbstractSystemException(java.lang.Throwable aCause)
Creates the SystemException with the generic error.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | generateCorrelationId(java.lang.Throwable aThrowable)
Generate correlation id for exception caused by the input throwable.
|
java.lang.String | getCorrelationId()
Gets the correlation Id for this exception When a system exception is thrown, the message will be transformed to a more generic message for the response to the client.
|
java.lang.String | getErrorCode()
Returns the error code of the exception
|
java.lang.String | getLocalizedMessage()
Creates a localized description of this Throwable.
|
java.lang.String | getLocalizedMessage(java.util.Locale aLocale)
Gets 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()
Returns the message key.
|
java.lang.Object[] | getMessageParams()
Returns the message parameters.
|
boolean | isClient()
This method returns whether the system exception is a result of client input or is generated by some server exception.
|
void | setClient(boolean isClientException)
This method sets whether the exception was caused as a result of input from the client request or it is because of a server issue.
|
public static final java.lang.String EMPTY_MSG
public AbstractSystemException()
public AbstractSystemException(java.lang.Throwable aCause)
public AbstractSystemException(java.lang.String astrMessage)
public AbstractSystemException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName)
public AbstractSystemException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName)
public AbstractSystemException(java.lang.String astrMessage, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
public AbstractSystemException(java.lang.String astrMessageKey, java.lang.Object[] aParams, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
public AbstractSystemException(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 AbstractSystemException(java.lang.String astrMessageKey, java.lang.String astrLocalizedMessage, java.lang.Object[] aParams, java.lang.String aResourceBundle, java.lang.String astrClassName, java.lang.String astrMethodName, java.lang.Throwable aCause)
public AbstractSystemException(java.lang.String astrMessageKey, java.lang.String astrLocalizedMessage, java.lang.Object[] aParams, java.lang.String astrErrorCode, 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 getLocalizedMessage(java.util.Locale aLocale)
public java.lang.String getMessage()
public java.lang.String getErrorCode()
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 boolean isClient()
public void setClient(boolean isClientException)