jdbm.helper
Class WrappedRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jdbm.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

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
equals, 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()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Overrides:
printStackTrace in class java.lang.Throwable


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