aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/apps/FOPException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/apps/FOPException.java')
-rw-r--r--src/org/apache/fop/apps/FOPException.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/org/apache/fop/apps/FOPException.java b/src/org/apache/fop/apps/FOPException.java
index d28d36052..94ca52bdf 100644
--- a/src/org/apache/fop/apps/FOPException.java
+++ b/src/org/apache/fop/apps/FOPException.java
@@ -11,6 +11,8 @@ package org.apache.fop.apps;
*/
public class FOPException extends Exception {
+ private Throwable _exception;
+
/**
* create a new FOP Exception
*
@@ -19,4 +21,13 @@ public class FOPException extends Exception {
public FOPException(String message) {
super(message);
}
+ public FOPException(Throwable e) {
+ super(e.getMessage());
+ _exception = e;
+ }
+
+ public Throwable getException()
+ {
+ return _exception;
+ }
}