jdbm.helper
Class WrappedRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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. |
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 |
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 messageexcept
- 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
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