added printStackTrace(PrintStream) for consistency with printStackTrace(PrintWriter)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137013 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Caswell 2002-09-12 01:20:25 +00:00
parent c0b40b9c77
commit 3c58a13269
1 changed files with 11 additions and 1 deletions

View File

@ -54,6 +54,7 @@
* <http://www.apache.org/>. * <http://www.apache.org/>.
*/ */
import java.io.PrintStream;
import java.io.PrintWriter; import java.io.PrintWriter;
/** /**
@ -64,7 +65,7 @@
* @author <a href="mailto:dlr@collab.net">Daniel Rall</a> * @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
* @author <a href="mailto:knielsen@apache.org">Kasper Nielsen</a> * @author <a href="mailto:knielsen@apache.org">Kasper Nielsen</a>
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a> * @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
* @version $Id: Nestable.java,v 1.3 2002/08/25 13:20:59 stevencaswell Exp $ * @version $Id: Nestable.java,v 1.4 2002/09/12 01:20:25 stevencaswell Exp $
*/ */
public interface Nestable public interface Nestable
{ {
@ -175,6 +176,15 @@ public interface Nestable
*/ */
public void printStackTrace(PrintWriter out); public void printStackTrace(PrintWriter out);
/**
* Prints the stack trace of this exception to the specified print
* stream. Includes inforamation from the exception--if
* any--which caused this exception.
*
* @param out <code>PrintStream</code> to use for output.
*/
public void printStackTrace(PrintStream out);
/** /**
* Prints the stack trace for this exception only--root cause not * Prints the stack trace for this exception only--root cause not
* included--using the provided writer. Used by {@link * included--using the provided writer. Used by {@link