org.exolab.jms.service
Class ServiceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.exolab.jms.service.ServiceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GarbageCollectionServiceException, PersistenceException, ServerException, ServiceAlreadyExistsException, ServiceDoesNotExistException

public class ServiceException
extends java.lang.Exception

This exception is thrown whenever there is a general exception with a service entitiy

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:51:01 $
Author:
Jim Alateras, Tim Anderson
See Also:
Serialized Form

Constructor Summary
ServiceException()
          Construct a new ServiceException with no information.
ServiceException(java.lang.String message)
          Construct a new ServiceException with a detail message
ServiceException(java.lang.String message, java.lang.Throwable cause)
          Construct a new ServiceException with a detail message and the exception that caused it
ServiceException(java.lang.Throwable cause)
          Construct a new ServiceException with the exception that caused it.
 
Method Summary
 java.lang.Throwable getRootCause()
          Returns the exception that caused this exception
 void printStackTrace()
          Prints the stack trace of the thrown exception to the standard error stream
 void printStackTrace(java.io.PrintStream stream)
          Prints the stack trace of the thrown exception to the specified print stream.
 void printStackTrace(java.io.PrintWriter writer)
          Prints the stack trace of the thrown throwable exception to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException()
Construct a new ServiceException with no information.

ServiceException

public ServiceException(java.lang.String message)
Construct a new ServiceException with a detail message
Parameters:
message - a message describing this exception

ServiceException

public ServiceException(java.lang.Throwable cause)
Construct a new ServiceException with the exception that caused it.
Parameters:
cause - the exception that caused this exception

ServiceException

public ServiceException(java.lang.String message,
                        java.lang.Throwable cause)
Construct a new ServiceException with a detail message and the exception that caused it
Parameters:
message - a message describing this exception
cause - the exception that caused this exception
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the exception that caused this exception
Returns:
the exception that caused this exception. May be null

printStackTrace

public void printStackTrace()
Prints the stack trace of the thrown exception to the standard error stream
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Prints the stack trace of the thrown exception to the specified print stream.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Prints the stack trace of the thrown throwable exception to the specified print writer.
Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.