javax.ejb
Class EJBException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.ejb.EJBException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessLocalException, ConcurrentAccessException, EJBAccessException, EJBTransactionRequiredException, EJBTransactionRolledbackException, NoMoreTimeoutsException, NoSuchEJBException, NoSuchEntityException, NoSuchObjectLocalException, TransactionRequiredLocalException, TransactionRolledbackLocalException

public class EJBException
extends RuntimeException

Thrown for unexpected exception.

Author:
Florent Benoit
See Also:
EJB 3.1 specification, Serialized Form

Constructor Summary
EJBException()
          Default constructor : builds an exception with an empty message.
EJBException(Exception causedByException)
          Builds an exception with a given exception.
EJBException(String message)
          Builds an exception with a given message.
EJBException(String message, Exception causedByException)
          Builds an exception with a given message and given exception.
 
Method Summary
 Exception getCausedByException()
           
 
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

EJBException

public EJBException()
Default constructor : builds an exception with an empty message.


EJBException

public EJBException(Exception causedByException)
Builds an exception with a given exception.

Parameters:
causedByException - the cause of this exception.

EJBException

public EJBException(String message)
Builds an exception with a given message.

Parameters:
message - the message of this exception.

EJBException

public EJBException(String message,
                    Exception causedByException)
Builds an exception with a given message and given exception.

Parameters:
message - the message of this exception.
causedByException - the cause of this exception.
Method Detail

getCausedByException

public Exception getCausedByException()
Returns:
the cause of this exception.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.