Save This Page
Home » glassfish-v2ur2-b04-src » javax » ejb » [javadoc | source]
javax.ejb
public class: EJBException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            javax.ejb.EJBException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    AccessLocalException, TransactionRequiredLocalException, NoSuchEntityException, NoSuchObjectLocalException, NoSuchEJBException, TransactionRolledbackLocalException, EJBAccessException, EJBTransactionRolledbackException, EJBTransactionRequiredException, ConcurrentAccessException

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:
 public EJBException() 
 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.
Method from javax.ejb.EJBException Summary:
getCausedByException,   getMessage,   printStackTrace,   printStackTrace,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.ejb.EJBException Detail:
 public Exception getCausedByException() 
    Obtain the exception that caused the EJBException being thrown.
 public String getMessage() 
    Returns the detail message, including the message from the nested exception if there is one.
 public  void printStackTrace() 
    Prints the composite message to System.err.
 public  void printStackTrace(PrintStream ps) 
    Prints the composite message and the embedded stack trace to the specified stream ps.
 public  void printStackTrace(PrintWriter pw) 
    Prints the composite message and the embedded stack trace to the specified print writer pw.