|
|||||||||||
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.finalist.util.genelv.exceptions.BusinessLogicException
This exception is thrown for all problems that occur in the EJB Container code of the application. This class defines a few typical error types to help the developer find the error cause.
Constructor Summary | |
BusinessLogicException()
Create new Business logic exception, with no wrapped business logic exception and empty ModelErrors. |
|
BusinessLogicException(java.lang.Exception exception)
Create new Business logic exception, with an empty ModelErrors object, and the given exception to be wrapped. |
|
BusinessLogicException(ModelErrors errors)
Create new Business logic exception, with the given ModelErrors object. |
|
BusinessLogicException(ModelErrors errors,
java.lang.Exception exception)
Create new Business logic exception, with the given ModelErrors object, and exception to be wrapped. |
Method Summary | |
void |
addBusinessLogicError(ModelError error)
Add a general business logic error to ModelErrors.GENERAL_ERROR . |
void |
addBusinessLogicError(java.lang.String property,
ModelError error)
Add a business logic error for the given property. |
ModelErrors |
getBusinessLogicErrors()
Retrieve all business logic errors. |
java.lang.String |
getErrorCode()
Get the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception. |
void |
setErrorCode(java.lang.String errorCode)
Set the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BusinessLogicException()
public BusinessLogicException(ModelErrors errors)
public BusinessLogicException(java.lang.Exception exception)
public BusinessLogicException(ModelErrors errors, java.lang.Exception exception)
Method Detail |
public ModelErrors getBusinessLogicErrors()
public void addBusinessLogicError(ModelError error)
ModelErrors.GENERAL_ERROR
.
public void addBusinessLogicError(java.lang.String property, ModelError error)
public java.lang.String getErrorCode()
public void setErrorCode(java.lang.String errorCode)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |