com.redstarhackers.exception
Class RuleFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.redstarhackers.exception.ApplicationException
com.redstarhackers.exception.RuleFailureException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BusinessRuleException, ValidationException
- public class RuleFailureException
- extends ApplicationException
Base Exception class for rule failure exceptions (such as validation or
business rules). RuleFailureException can contain any number of inner
exceptions which are used to then produce the list of resulting error
messages.
- Version:
- $Revision: 1.3 $
- 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
RuleFailureException
public RuleFailureException()
RuleFailureException
public RuleFailureException(ErrorCode code)
RuleFailureException
public RuleFailureException(ErrorCode code,
java.lang.String details)
RuleFailureException
public RuleFailureException(java.lang.String details)
RuleFailureException
public RuleFailureException(java.lang.Throwable rootCause)
RuleFailureException
public RuleFailureException(ErrorCode code,
java.lang.Throwable rootCause)
RuleFailureException
public RuleFailureException(java.lang.String details,
java.lang.Throwable rootCause)
RuleFailureException
public RuleFailureException(ErrorCode code,
java.lang.String details,
java.lang.Throwable rootCause)
getExceptions
public java.util.Set getExceptions()
- Returns:
- Returns the exceptions contained by this exception.
setExceptions
public void setExceptions(java.util.Set 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 getErrorMessages()