From 3c58a132695f82727f0fa247d1974b9f818f501e Mon Sep 17 00:00:00 2001 From: Steven Caswell Date: Thu, 12 Sep 2002 01:20:25 +0000 Subject: [PATCH] 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 --- .../org/apache/commons/lang/exception/Nestable.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/commons/lang/exception/Nestable.java b/src/java/org/apache/commons/lang/exception/Nestable.java index a54a63220..06624fdb4 100644 --- a/src/java/org/apache/commons/lang/exception/Nestable.java +++ b/src/java/org/apache/commons/lang/exception/Nestable.java @@ -54,6 +54,7 @@ * . */ +import java.io.PrintStream; import java.io.PrintWriter; /** @@ -64,7 +65,7 @@ * @author Daniel Rall * @author Kasper Nielsen * @author Steven Caswell - * @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 { @@ -175,6 +176,15 @@ public interface Nestable */ 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 PrintStream to use for output. + */ + public void printStackTrace(PrintStream out); + /** * Prints the stack trace for this exception only--root cause not * included--using the provided writer. Used by {@link