jdbm.helper
Class WrappedRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjdbm.helper.WrappedRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IterationException

public class WrappedRuntimeException
extends java.lang.RuntimeException

A run-time exception that wraps another exception. The printed stack trace will be that of the wrapped exception.

Version:
$Id: WrappedRuntimeException.java,v 1.1 2002/05/31 06:33:20 boisvert Exp $
Author:
Alex Boisvert
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
WrappedRuntimeException(java.lang.Exception except)
          Constructs a new runtime exception based on a checked exception.
WrappedRuntimeException(java.lang.String message, java.lang.Exception except)
          Constructs a new runtime exception based on a checked exception.
 
Method Summary
 java.lang.Exception getException()
          Returns the exception wrapped by this runtime exception.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream stream)
           
 void printStackTrace(java.io.PrintWriter writer)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappedRuntimeException

public WrappedRuntimeException(java.lang.String message,
                               java.lang.Exception except)
Constructs a new runtime exception based on a checked exception.

Parameters:
message - The error message
except - The checked exception

WrappedRuntimeException

public WrappedRuntimeException(java.lang.Exception except)
Constructs a new runtime exception based on a checked exception.

Parameters:
except - The checked exception
Method Detail

getException

public java.lang.Exception getException()
Returns the exception wrapped by this runtime exception.

Returns:
The exception wrapped by this runtime exception

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintStream stream)

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)


Cees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net