com.ail.core.configure
Class EJBConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.ejb.EJBException
                  extended by com.ail.core.configure.EJBConfigurationException
All Implemented Interfaces:
java.io.Serializable

public class EJBConfigurationException
extends javax.ejb.EJBException

This exception is throw by the EJBLoader in reponse to any problems that it encounters. Its purpose is simply to wrap the exception/error such that it cause roll backs, and give the client side code access to the actual exception/error.

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Constructor Summary
EJBConfigurationException(BaseError e)
          Constructor to create an EJBConfigurationException to wrap a BaseError.
EJBConfigurationException(BaseException e)
          Consstructor to create an EJBConfigurationException to wrap a BaseException.
EJBConfigurationException(java.lang.String message, java.lang.Throwable cause)
          Constructor.
 
Method Summary
 BaseError getBaseErrorCause()
          Return the cause if it was a BaseError, otherwise return null.
 BaseException getBaseExceptionCause()
          Return the cause if it was a BaseException, otherwise return null.
 java.lang.Throwable getServerSideCause()
          Get the exception/error that cause the problem.
 java.lang.String toString()
           
 
Methods inherited from class javax.ejb.EJBException
getCausedByException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EJBConfigurationException

public EJBConfigurationException(BaseError e)
Constructor to create an EJBConfigurationException to wrap a BaseError.

Parameters:
e - BaseError

EJBConfigurationException

public EJBConfigurationException(BaseException e)
Consstructor to create an EJBConfigurationException to wrap a BaseException.

Parameters:
e - BaseException

EJBConfigurationException

public EJBConfigurationException(java.lang.String message,
                                 java.lang.Throwable cause)
Constructor.

Parameters:
message - Message
cause - causing exception
Method Detail

getServerSideCause

public java.lang.Throwable getServerSideCause()
Get the exception/error that cause the problem.

Returns:

getBaseErrorCause

public BaseError getBaseErrorCause()
Return the cause if it was a BaseError, otherwise return null.

Returns:
Cause, or null.

getBaseExceptionCause

public BaseException getBaseExceptionCause()
Return the cause if it was a BaseException, otherwise return null.

Returns:
Cause, or null.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable