aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps/FOPException.java
diff options
context:
space:
mode:
authorWilliam Victor Mote <vmote@apache.org>2003-07-05 09:28:34 +0000
committerWilliam Victor Mote <vmote@apache.org>2003-07-05 09:28:34 +0000
commit815f51c5a817c798116178a9912ba8a131e949aa (patch)
tree72905725985367bc897c7eaccd23dc6aba57851d /src/java/org/apache/fop/apps/FOPException.java
parent3bc2589628e1c9a622605ccfe6410c067f8df803 (diff)
downloadxmlgraphics-fop-815f51c5a817c798116178a9912ba8a131e949aa.tar.gz
xmlgraphics-fop-815f51c5a817c798116178a9912ba8a131e949aa.zip
style changes only
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196611 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps/FOPException.java')
-rw-r--r--src/java/org/apache/fop/apps/FOPException.java49
1 files changed, 38 insertions, 11 deletions
diff --git a/src/java/org/apache/fop/apps/FOPException.java b/src/java/org/apache/fop/apps/FOPException.java
index cb8c4ca9c..f90a75272 100644
--- a/src/java/org/apache/fop/apps/FOPException.java
+++ b/src/java/org/apache/fop/apps/FOPException.java
@@ -3,34 +3,34 @@
* ============================================================================
* The Apache Software License, Version 1.1
* ============================================================================
- *
+ *
* Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
- *
+ *
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
- *
+ *
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
- *
+ *
* 3. The end-user documentation included with the redistribution, if any, must
* include the following acknowledgment: "This product includes software
* developed by the Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself, if
* and wherever such third-party acknowledgments normally appear.
- *
+ *
* 4. The names "FOP" and "Apache Software Foundation" must not be used to
* endorse or promote products derived from this software without prior
* written permission. For written permission, please contact
* apache@apache.org.
- *
+ *
* 5. Products derived from this software may not be called "Apache", nor may
* "Apache" appear in their name, without prior written permission of the
* Apache Software Foundation.
- *
+ *
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
@@ -42,12 +42,12 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ============================================================================
- *
+ *
* This software consists of voluntary contributions made by many individuals
* on behalf of the Apache Software Foundation and was originally created by
* James Tauber <jtauber@jtauber.com>. For more information on the Apache
* Software Foundation, please see <http://www.apache.org/>.
- */
+ */
package org.apache.fop.apps;
import org.xml.sax.SAXException;
@@ -70,20 +70,37 @@ public class FOPException extends Exception {
super(message);
}
+ /**
+ *
+ * @param e Throwable object
+ */
public FOPException(Throwable e) {
super(e.getMessage());
setException(e);
}
+ /**
+ *
+ * @param message descriptive message
+ * @param e Throwable object
+ */
public FOPException(String message, Throwable e) {
super(message);
setException(e);
}
+ /**
+ * Sets exception
+ * @param t Throwable object
+ */
protected void setException(Throwable t) {
exception = t;
}
+ /**
+ * Accessor for exception
+ * @return exception
+ */
public Throwable getException() {
return exception;
}
@@ -104,7 +121,9 @@ public class FOPException extends Exception {
return null;
}
-
+ /**
+ * Write stack trace to stderr
+ */
public void printStackTrace() {
synchronized (System.err) {
super.printStackTrace();
@@ -119,6 +138,10 @@ public class FOPException extends Exception {
}
}
+ /**
+ * write stack trace on a PrintStream
+ * @param stream PrintStream on which to write stack trace
+ */
public void printStackTrace(java.io.PrintStream stream) {
synchronized (stream) {
super.printStackTrace(stream);
@@ -133,6 +156,10 @@ public class FOPException extends Exception {
}
}
+ /**
+ * Write stack trace on a PrintWriter
+ * @param writer PrintWriter on which to write stack trace
+ */
public void printStackTrace(java.io.PrintWriter writer) {
synchronized (writer) {
super.printStackTrace(writer);