org.exolab.jms.net.connector
Class ResourceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.exolab.jms.net.connector.ResourceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConnectException, IllegalStateException, SecurityException

public class ResourceException
extends java.lang.Exception

General exception class

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

Constructor Summary
ResourceException()
          Construct a new ResourceException
ResourceException(java.lang.String detail)
          Construct a new ResourceException with no target exception
ResourceException(java.lang.String detail, java.lang.Throwable target)
          Construct a new ResourceException with a detail message and target exception
ResourceException(java.lang.Throwable target)
          Construct a new ResourceException with a target exception
 
Method Summary
 java.lang.Throwable getTargetException()
          Get the thrown target exception
 void printStackTrace(java.io.PrintStream stream)
          Writes the stack trace of the thrown target exception to the specified print stream.
 void printStackTrace(java.io.PrintWriter writer)
          Writes the stack trace of the thrown target exception to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceException

public ResourceException()
Construct a new ResourceException

ResourceException

public ResourceException(java.lang.String detail)
Construct a new ResourceException with no target exception
Parameters:
detail - the detail message

ResourceException

public ResourceException(java.lang.Throwable target)
Construct a new ResourceException with a target exception
Parameters:
target - the target exception

ResourceException

public ResourceException(java.lang.String detail,
                         java.lang.Throwable target)
Construct a new ResourceException with a detail message and target exception
Parameters:
detail - the detail message
target - the target exception
Method Detail

getTargetException

public java.lang.Throwable getTargetException()
Get the thrown target exception
Returns:
the target exception

printStackTrace

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

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Writes the stack trace of the thrown target exception to the specified print writer.
Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
writer - the writer to write to


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