com.rshtech.exception
Class RuntimeRuleFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.rshtech.exception.SystemException
com.rshtech.exception.RuntimeRuleFailureException
- All Implemented Interfaces:
- java.io.Serializable
public class RuntimeRuleFailureException
- extends SystemException
A runtime, base Exception class for rule failure exceptions (such as validation or
business rules). RuntimeRuleFailureException can contain any number of inner
exceptions which are used to then produce the list of resulting error
messages. This class is provided for such APIs that cannot have an
explicit throws RuleFailureException in their signature (like a rule engine).
- Version:
- $Revision: 3137 $
- Author:
- $Author: kostya $
- See Also:
- 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 |
VALIDATION_DEFAULT_ERROR_CODE
public static final ErrorCode VALIDATION_DEFAULT_ERROR_CODE
RuntimeRuleFailureException
public RuntimeRuleFailureException()
RuntimeRuleFailureException
public RuntimeRuleFailureException(ErrorCode code)
RuntimeRuleFailureException
public RuntimeRuleFailureException(ErrorCode code,
java.lang.String details)
RuntimeRuleFailureException
public RuntimeRuleFailureException(java.lang.String details)
RuntimeRuleFailureException
public RuntimeRuleFailureException(java.lang.Throwable rootCause)
RuntimeRuleFailureException
public RuntimeRuleFailureException(ErrorCode code,
java.lang.Throwable rootCause)
RuntimeRuleFailureException
public RuntimeRuleFailureException(java.lang.String details,
java.lang.Throwable rootCause)
RuntimeRuleFailureException
public RuntimeRuleFailureException(ErrorCode code,
java.lang.String details,
java.lang.Throwable rootCause)
getExceptions
public java.util.Set<java.lang.Exception> getExceptions()
- Returns:
- Returns the exceptions contained by this exception.
setExceptions
public void setExceptions(java.util.Set<java.lang.Exception> exceptions)
- Parameters:
exceptions - exceptions this exception contains.
addException
public void addException(ApplicationException exception)
- Parameters:
exception - the exception to add (to be contained by this exception)
addException
public void addException(SystemException exception)
- Parameters:
exception - the exception to add (to be contained by this exception)
getErrorMessages
public java.util.Set<java.lang.String> getErrorMessages()