org.openejb
Class OpenEJBException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.openejb.OpenEJBException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApplicationException, ServiceException, SystemException

public class OpenEJBException
extends Exception

The OpenEJBException is the standard exception thrown by all methods in all type in the Container Provider Interface (CPI). The OpenEJBException has 3 subtypes each serving a different purpose. The CPI will always thrown one of these subtype and never the OpenEJBException itself.

Version:
$Revision: 1.2 $ $Date: 2004/04/09 19:04:00 $
See Also:
ApplicationException, InvalidateReferenceException, OpenEJBException, SystemException, Serialized Form

Constructor Summary
OpenEJBException()
           Default constructor, which simply delegates exception handling up the inheritance chain to Exception.
OpenEJBException(String message)
           This constructor allows a message to be supplied indicating the source of the problem that occurred.
OpenEJBException(String message, Throwable rootCause)
          This constructor allows both a message identifying the problem that occurred as well as a "root cause" exception to be supplied, which may later be used by the wrapping application.
OpenEJBException(Throwable rootCause)
           This constructor allows a "root cause" exception to be supplied, which may later be used by the wrapping application.
 
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

OpenEJBException

public OpenEJBException()

Default constructor, which simply delegates exception handling up the inheritance chain to Exception.


OpenEJBException

public OpenEJBException(String message)

This constructor allows a message to be supplied indicating the source of the problem that occurred.

Parameters:
message - String identifying the cause of the problem.

OpenEJBException

public OpenEJBException(Throwable rootCause)

This constructor allows a "root cause" exception to be supplied, which may later be used by the wrapping application.

Parameters:
rootCause - Throwable that triggered the problem.

OpenEJBException

public OpenEJBException(String message,
                        Throwable rootCause)
This constructor allows both a message identifying the problem that occurred as well as a "root cause" exception to be supplied, which may later be used by the wrapping application.

Parameters:
message - String identifying the cause of the problem.
rootCause - Throwable that triggered this problem.


Copyright © 1999-2005 OpenEJB. All Rights Reserved.