|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.retek.commons.domain.core.exception.BusinessException
Root class of all business rule related exceptions. May contain multiple business problems. Max severity of errors escalates as business problems are added, according to error severity of the business problem.
Retek Inc. Copyright (c) 2003
Constructor Summary | |
BusinessException(java.lang.String messageBundle,
java.lang.String messageKey)
|
|
BusinessException(java.lang.String messageBundle,
java.lang.String messageKey,
BusinessProblem theProblem)
|
|
BusinessException(java.lang.String messageBundle,
java.lang.String messageKey,
java.lang.Object[] messageValues)
|
|
BusinessException(java.lang.String messageBundle,
java.lang.String messageKey,
java.lang.Object[] messageValues,
BusinessProblem theProblem)
|
Method Summary | |
void |
add(BusinessProblem theProblem)
|
void |
addAll(java.util.Collection problems)
|
ErrorSeverity |
getMaxSeverity()
Returns the highest severity of all the business problems. |
java.lang.String |
getMessage()
|
java.util.Collection |
getProblems()
|
boolean |
hasErrors()
Returns true if any of the business problems have a severity of Error or higher. |
boolean |
hasProblems()
|
boolean |
hasProblems(ErrorSeverity minSeverity)
Returns true if any of the business problems have a severity higher then minSeverity. |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream out)
|
void |
printStackTrace(java.io.PrintWriter out)
|
void |
throwIfErrors()
Throws itself if any of the business problems have a severity of Error or higher. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BusinessException(java.lang.String messageBundle, java.lang.String messageKey)
public BusinessException(java.lang.String messageBundle, java.lang.String messageKey, BusinessProblem theProblem)
public BusinessException(java.lang.String messageBundle, java.lang.String messageKey, java.lang.Object[] messageValues)
public BusinessException(java.lang.String messageBundle, java.lang.String messageKey, java.lang.Object[] messageValues, BusinessProblem theProblem)
Method Detail |
public void add(BusinessProblem theProblem)
public void addAll(java.util.Collection problems)
public java.util.Collection getProblems()
public ErrorSeverity getMaxSeverity()
public boolean hasProblems()
public boolean hasProblems(ErrorSeverity minSeverity)
public boolean hasErrors()
public void throwIfErrors() throws BusinessException
BusinessException
public java.lang.String getMessage()
public final void printStackTrace()
public final void printStackTrace(java.io.PrintStream out)
public final void printStackTrace(java.io.PrintWriter out)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |