You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2004/01/14 15:05:15 UTC
cvs commit: xml-fop/src/java/org/apache/fop/apps FOPException.java
pbwest 2004/01/14 06:05:15
Modified: src/java/org/apache/fop/apps Tag: FOP_0-20-0_Alt-Design
FOPException.java
Log:
Modified to use 1.4 exception chaining
Revision Changes Path
No revision
No revision
1.2.2.4 +16 -8 xml-fop/src/java/org/apache/fop/apps/FOPException.java
Index: FOPException.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/apps/FOPException.java,v
retrieving revision 1.2.2.3
retrieving revision 1.2.2.4
diff -u -r1.2.2.3 -r1.2.2.4
--- FOPException.java 11 Jul 2003 04:03:47 -0000 1.2.2.3
+++ FOPException.java 14 Jan 2004 14:05:15 -0000 1.2.2.4
@@ -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 @@
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 @@
* @param e incoming Throwable
*/
public FOPException(Throwable e) {
- super(e.getMessage());
- setException(e);
+ super(e);
}
/**
@@ -88,30 +85,34 @@
* @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 @@
}
return null;
}
+ */
/**
* @see java.lang.Throwable#printStackTrace()
*/
+ /*
public void printStackTrace() {
synchronized (System.err) {
super.printStackTrace();
@@ -145,10 +148,12 @@
}
}
}
+ */
/**
* @see java.lang.Throwable#printStackTrace(java.io.PrintStream)
*/
+ /*
public void printStackTrace(java.io.PrintStream stream) {
synchronized (stream) {
super.printStackTrace(stream);
@@ -162,10 +167,12 @@
}
}
}
+ */
/**
* @see java.lang.Throwable#printStackTrace(java.io.PrintWriter)
*/
+ /*
public void printStackTrace(java.io.PrintWriter writer) {
synchronized (writer) {
super.printStackTrace(writer);
@@ -179,5 +186,6 @@
}
}
}
+ */
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org