blob: e53c51cbd6fdf9bea2bd41ab7058911380a19f27 [file] [log] [blame]
package org.eclipse.wst.common.frameworks.internal;
/*
* Licensed Material - Property of IBM (C) Copyright IBM Corp. 2001, 2002 - All Rights Reserved. US
* Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP
* Schedule Contract with IBM Corp.
*/
public class WrappedException extends java.lang.reflect.InvocationTargetException {
/**
* Comment for <code>serialVersionUID</code>
*/
private static final long serialVersionUID = -9221925581603648538L;
/**
* WFTWrappedException constructor comment.
*/
protected WrappedException() {
super();
}
/**
* WFTWrappedException constructor comment.
*
* @param target
* java.lang.Throwable
*/
public WrappedException(Throwable target) {
super(target);
}
/**
* WFTWrappedException constructor comment.
*
* @param target
* java.lang.Throwable
* @param s
* java.lang.String
*/
public WrappedException(Throwable target, String s) {
super(target, s);
}
/**
* Print out a stack trace to the system err.
*/
public void printStackTrace() {
printStackTrace(System.err);
}
/**
* Prints the exception to System.err. If we have a nested exception, print its stack.
*/
public void printStackTrace(java.io.PrintStream s) {
if (getTargetException() != null) {
s.println(this);
s.println("Stack trace of nested exception:"); //$NON-NLS-1$
getTargetException().printStackTrace(s);
} else {
super.printStackTrace(s);
}
}
/**
* Prints the exception to System.err. If we have a nested exception, print its stack.
*/
public void printStackTrace(java.io.PrintWriter s) {
if (getTargetException() != null) {
s.println(this);
s.println("Stack trace of nested exception:"); //$NON-NLS-1$
getTargetException().printStackTrace(s);
} else {
super.printStackTrace(s);
}
}
}