org.openejb.server
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openejb.OpenEJBException
              extended by org.openejb.server.ServiceException
All Implemented Interfaces:
java.io.Serializable

public class ServiceException
extends OpenEJBException

Author:
David Blevins
See Also:
Serialized Form

Constructor Summary
ServiceException()
           Default constructor, which simply delegates exception handling up the inheritance chain to Exception.
ServiceException(java.lang.String message)
           This constructor allows a message to be supplied indicating the source of the problem that occurred.
ServiceException(java.lang.String message, java.lang.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.
ServiceException(java.lang.Throwable rootCause)
           This constructor allows a "root cause" exception to be supplied, which may later be used by the wrapping application.
 
Method Summary
 
Methods inherited from class org.openejb.OpenEJBException
getMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException()

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


ServiceException

public ServiceException(java.lang.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.

ServiceException

public ServiceException(java.lang.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.

ServiceException

public ServiceException(java.lang.String message,
                        java.lang.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-2011 OpenEJB. All Rights Reserved.