com.finalist.util.genelv.exceptions
Class BusinessLogicException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.finalist.util.genelv.exceptions.BusinessLogicException
All Implemented Interfaces:
java.io.Serializable

public class BusinessLogicException
extends java.lang.Exception
implements java.io.Serializable

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.

See Also:
Serialized Form

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

BusinessLogicException

public BusinessLogicException()
Create new Business logic exception, with no wrapped business logic exception and empty ModelErrors.


BusinessLogicException

public BusinessLogicException(ModelErrors errors)
Create new Business logic exception, with the given ModelErrors object.


BusinessLogicException

public BusinessLogicException(java.lang.Exception exception)
Create new Business logic exception, with an empty ModelErrors object, and the given exception to be wrapped.


BusinessLogicException

public BusinessLogicException(ModelErrors errors,
                              java.lang.Exception exception)
Create new Business logic exception, with the given ModelErrors object, and exception to be wrapped.

Method Detail

getBusinessLogicErrors

public ModelErrors getBusinessLogicErrors()
Retrieve all business logic errors.


addBusinessLogicError

public void addBusinessLogicError(ModelError error)
Add a general business logic error to ModelErrors.GENERAL_ERROR.


addBusinessLogicError

public void addBusinessLogicError(java.lang.String property,
                                  ModelError error)
Add a business logic error for the given property.


getErrorCode

public java.lang.String getErrorCode()
Get the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception.


setErrorCode

public void setErrorCode(java.lang.String errorCode)
Set the ApplicationResource (action) error key indicating the cause of the (wrapped EJB) exception.



Copyright © 2003-2004 SourceForge. All Rights Reserved.