Package javax.ejb
Class EJBException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.ejb.EJBException
-
- Direct Known Subclasses:
AccessLocalException
,ConcurrentAccessException
,EJBAccessException
,EJBTransactionRequiredException
,EJBTransactionRolledbackException
,NoMoreTimeoutsException
,NoSuchEJBException
,NoSuchObjectLocalException
,TransactionRequiredLocalException
,TransactionRolledbackLocalException
public class EJBException extends java.lang.RuntimeException
The EJBException is thrown to report that the invoked business method or callback method could not be completed because of an unexpected error (e.g. the instance failed to open a database connection).- Since:
- EJB 1.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EJBException()
Constructs an EJBException with no detail message.EJBException(java.lang.Exception ex)
Constructs an EJBException that embeds the originally thrown exception.EJBException(java.lang.String message)
Constructs an EJBException with the specified detailed message.EJBException(java.lang.String message, java.lang.Exception ex)
Constructs an EJBException that embeds the originally thrown exception with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getCausedByException()
Obtain the exception that caused the EJBException to be thrown.
-
-
-
Constructor Detail
-
EJBException
public EJBException()
Constructs an EJBException with no detail message.
-
EJBException
public EJBException(java.lang.String message)
Constructs an EJBException with the specified detailed message.
-
EJBException
public EJBException(java.lang.Exception ex)
Constructs an EJBException that embeds the originally thrown exception.
-
EJBException
public EJBException(java.lang.String message, java.lang.Exception ex)
Constructs an EJBException that embeds the originally thrown exception with the specified detail message.
-
-