com.rshtech.exception
Class ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.rshtech.exception.ApplicationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- RuleFailureException, SecurityException
public class ApplicationException
- extends java.lang.Exception
A base Exception for application exceptions, exceptions which are
expected to occur in the course of the application's execution (as
opposed to RuntimeExceptions which might occur as a result of
unforseen states or values in the system). Application exceptions
are considered "potentially recoverable", as their possibility
is a known, compile time issue and how they are handled can be
predicted. An application can choose to handle an application
exception and not generate any error states, or it can choose
to rethrow the exception and make it someone elses problem (who
may then choose to terminate the application or handle the
exception themselves).
ApplicationExceptions are "error code based", meaning that
all ApplicationExceptions are built using an ErrorCode object,
which in turn references an existing error code entry (which
then lists the corresponding error message). This allows for
standardized error messages that can also be internationalized.
See the ErrorCode class for more information. ApplicationException
has a default error code for when an ErrorCode is not supplied.
- Version:
- $Revision: 3137 $
- Author:
- $Author: kostya $
- See Also:
SystemException,
ErrorCode,
ErrorInformation,
ErrorMessageUtil,
Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
APP_DEFAULT_ERROR_CODE
public static final ErrorCode APP_DEFAULT_ERROR_CODE
ApplicationException
public ApplicationException()
ApplicationException
public ApplicationException(ErrorCode code)
ApplicationException
public ApplicationException(ErrorCode code,
java.lang.String details)
ApplicationException
public ApplicationException(java.lang.String details)
ApplicationException
public ApplicationException(java.lang.Throwable rootCause)
ApplicationException
public ApplicationException(ErrorCode code,
java.lang.Throwable rootCause)
ApplicationException
public ApplicationException(java.lang.String details,
java.lang.Throwable rootCause)
ApplicationException
public ApplicationException(ErrorCode code,
java.lang.String details,
java.lang.Throwable rootCause)
getErrorCode
public ErrorCode getErrorCode()
getErrorMessage
public java.lang.String getErrorMessage()
getDetails
public java.lang.String getDetails()
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable