aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hpsf/HPSFRuntimeException.java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2012-11-16 12:21:49 +0000
committerYegor Kozlov <yegor@apache.org>2012-11-16 12:21:49 +0000
commite0b6a9975c574bde00acd26eaa172cce023301a0 (patch)
treee65dc9d4919e5232337afa3456d57f9a4fb3f141 /src/java/org/apache/poi/hpsf/HPSFRuntimeException.java
parent1ee9f0d29fcb25688f06915497cd9d02ab784c75 (diff)
downloadpoi-e0b6a9975c574bde00acd26eaa172cce023301a0.tar.gz
poi-e0b6a9975c574bde00acd26eaa172cce023301a0.zip
Bug 52628 - Replace System.err info messages with a POILogger
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1410318 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hpsf/HPSFRuntimeException.java')
-rw-r--r--src/java/org/apache/poi/hpsf/HPSFRuntimeException.java84
1 files changed, 41 insertions, 43 deletions
diff --git a/src/java/org/apache/poi/hpsf/HPSFRuntimeException.java b/src/java/org/apache/poi/hpsf/HPSFRuntimeException.java
index 79825ebf82..203498f13c 100644
--- a/src/java/org/apache/poi/hpsf/HPSFRuntimeException.java
+++ b/src/java/org/apache/poi/hpsf/HPSFRuntimeException.java
@@ -17,8 +17,6 @@
package org.apache.poi.hpsf;
-import java.io.PrintStream;
-import java.io.PrintWriter;
/**
* <p>This exception is the superclass of all other unchecked
@@ -30,8 +28,8 @@ import java.io.PrintWriter;
*/
public class HPSFRuntimeException extends RuntimeException
{
-
- /** <p>The underlying reason for this exception - may be
+ private static final long serialVersionUID = -7804271670232727159L;
+ /** <p>The underlying reason for this exception - may be
* <code>null</code>.</p> */
private Throwable reason;
@@ -105,44 +103,44 @@ public class HPSFRuntimeException extends RuntimeException
- /**
- * @see Throwable#printStackTrace()
- */
- public void printStackTrace()
- {
- printStackTrace(System.err);
- }
-
-
-
- /**
- * @see Throwable#printStackTrace(java.io.PrintStream)
- */
- public void printStackTrace(final PrintStream p)
- {
- final Throwable reason = getReason();
- super.printStackTrace(p);
- if (reason != null)
- {
- p.println("Caused by:");
- reason.printStackTrace(p);
- }
- }
-
-
-
- /**
- * @see Throwable#printStackTrace(java.io.PrintWriter)
- */
- public void printStackTrace(final PrintWriter p)
- {
- final Throwable reason = getReason();
- super.printStackTrace(p);
- if (reason != null)
- {
- p.println("Caused by:");
- reason.printStackTrace(p);
- }
- }
+// /**
+// * @see Throwable#printStackTrace()
+// */
+// public void printStackTrace()
+// {
+// printStackTrace(System.err);
+// }
+
+
+
+// /**
+// * @see Throwable#printStackTrace(java.io.PrintStream)
+// */
+// public void printStackTrace(final PrintStream p)
+// {
+// final Throwable reason = getReason();
+// super.printStackTrace(p);
+// if (reason != null)
+// {
+// p.println("Caused by:");
+// reason.printStackTrace(p);
+// }
+// }
+
+
+
+// /**
+// * @see Throwable#printStackTrace(java.io.PrintWriter)
+// */
+// public void printStackTrace(final PrintWriter p)
+// {
+// final Throwable reason = getReason();
+// super.printStackTrace(p);
+// if (reason != null)
+// {
+// p.println("Caused by:");
+// reason.printStackTrace(p);
+// }
+// }
}