- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.ejb.EJBException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AccessLocalException,ConcurrentAccessException,EJBAccessException,EJBTransactionRequiredException,EJBTransactionRolledbackException,NoMoreTimeoutsException,NoSuchEJBException,NoSuchEntityException,NoSuchObjectLocalException,TransactionRequiredLocalException,TransactionRolledbackLocalException
public class EJBException extends java.lang.RuntimeExceptionThe 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
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
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.ExceptiongetCausedByException()Obtain the exception that caused the EJBException to be thrown.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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.- Parameters:
message- aStringobject.
-
EJBException
public EJBException(java.lang.Exception ex)
Constructs an EJBException that embeds the originally thrown exception.- Parameters:
ex- aExceptionobject.
-
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.- Parameters:
message- aStringobject.ex- aExceptionobject.
-
-