]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Modified to use 1.4 exception chaining
authorPeter Bernard West <pbwest@apache.org>
Wed, 14 Jan 2004 14:05:15 +0000 (14:05 +0000)
committerPeter Bernard West <pbwest@apache.org>
Wed, 14 Jan 2004 14:05:15 +0000 (14:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197160 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/apps/FOPException.java

index c582cdd0014124e6fa345f697c374a9348a490ca..f444fee0aa03a3da6b797ed00d81e4fa7d5b8474 100644 (file)
@@ -52,8 +52,6 @@
 
 package org.apache.fop.apps;
 
-import org.xml.sax.SAXException;
-
 
 /**
  * Exception thrown when FOP has a problem
@@ -62,9 +60,9 @@ public class FOPException extends Exception {
     private static final String TAG = "$Name$";
     private static final String REVISION = "$Revision$";
 
-    private static final String EXCEPTION_SEPARATOR = "\n---------\n";
+    //private static final String EXCEPTION_SEPARATOR = "\n---------\n";
 
-    private Throwable exception;
+    //private Throwable exception;
 
     /**
      * create a new FOP Exception
@@ -79,8 +77,7 @@ public class FOPException extends Exception {
      * @param e incoming Throwable
      */
     public FOPException(Throwable e) {
-        super(e.getMessage());
-        setException(e);
+        super(e);
     }
 
     /**
@@ -88,30 +85,34 @@ public class FOPException extends Exception {
      * @param e the exception
      */
     public FOPException(String message, Throwable e) {
-        super(message);
-        setException(e);
+        super(message, e);
     }
 
     /**
      * Sets this exception to the Throwable parameter
      * @param t the exception
      */
+    /*
     protected void setException(Throwable t) {
         exception = t;
     }
+    */
 
     /**
      * Gets this exception.
      * @return a Throwable
      */
+    /*
     public Throwable getException() {
         return exception;
     }
+    */
 
     /**
      * Gets the root exception of this exception.
      * @return the Throwable root exception
      */
+    /*
     protected Throwable getRootException() {
         Throwable result = exception;
 
@@ -127,11 +128,13 @@ public class FOPException extends Exception {
         }
         return null;
     }
+    */
 
 
     /**
      * @see java.lang.Throwable#printStackTrace()
      */
+    /*
     public void printStackTrace() {
         synchronized (System.err) {
             super.printStackTrace();
@@ -145,10 +148,12 @@ public class FOPException extends Exception {
             }
         }
     }
+    */
 
     /**
      * @see java.lang.Throwable#printStackTrace(java.io.PrintStream)
      */
+    /*
     public void printStackTrace(java.io.PrintStream stream) {
         synchronized (stream) {
             super.printStackTrace(stream);
@@ -162,10 +167,12 @@ public class FOPException extends Exception {
             }
         }
     }
+    */
 
     /**
      * @see java.lang.Throwable#printStackTrace(java.io.PrintWriter)
      */
+    /*
     public void printStackTrace(java.io.PrintWriter writer) {
         synchronized (writer) {
             super.printStackTrace(writer);
@@ -179,5 +186,6 @@ public class FOPException extends Exception {
             }
         }
     }
+    */
 
 }