| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.ejb.EJBException
All known Subclasses: javax.ejb.ConcurrentAccessException, javax.ejb.NoSuchObjectLocalException, javax.ejb.NoSuchEntityException, javax.ejb.EJBTransactionRolledbackException, javax.ejb.NoSuchEJBException, javax.ejb.EJBAccessException, javax.ejb.TransactionRequiredLocalException, javax.ejb.EJBTransactionRequiredException, javax.ejb.AccessLocalException, javax.ejb.TransactionRolledbackLocalException,
EJBException | public class EJBException extends java.lang.RuntimeException (Code) | | The EJBException exception is thrown by an enterprise Bean instance to
its container 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).
|
Constructor Summary | |
public | EJBException() Constructs an EJBException with no detail message. | public | EJBException(String message) Constructs an EJBException with the specified
detailed message. | public | EJBException(Exception ex) Constructs an EJBException that embeds the originally thrown exception. | public | EJBException(String message, Exception ex) Constructs an EJBException that embeds the originally thrown exception
with the specified detail message. |
EJBException | public EJBException()(Code) | | Constructs an EJBException with no detail message.
|
EJBException | public EJBException(String message)(Code) | | Constructs an EJBException with the specified
detailed message.
|
EJBException | public EJBException(Exception ex)(Code) | | Constructs an EJBException that embeds the originally thrown exception.
|
EJBException | public EJBException(String message, Exception ex)(Code) | | Constructs an EJBException that embeds the originally thrown exception
with the specified detail message.
|
getCausedByException | public Exception getCausedByException()(Code) | | Obtain the exception that caused the EJBException being thrown.
|
getMessage | public String getMessage()(Code) | | Returns the detail message, including the message from the nested
exception if there is one.
|
printStackTrace | public void printStackTrace(java.io.PrintStream ps)(Code) | | Prints the composite message and the embedded stack trace to
the specified stream ps .
Parameters: ps - the print stream |
printStackTrace | public void printStackTrace()(Code) | | Prints the composite message to System.err .
|
printStackTrace | public void printStackTrace(java.io.PrintWriter pw)(Code) | | Prints the composite message and the embedded stack trace to
the specified print writer pw .
Parameters: pw - the print writer |
|
|