aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/extensions/svg
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-10-07 14:26:37 +0000
committerJeremias Maerki <jeremias@apache.org>2006-10-07 14:26:37 +0000
commit78b3b2bb8f79b35fe41088b69e124b42e2f08da1 (patch)
tree6fbac7482e53fb4c70769f41c70fd84916293e8a /src/java/org/apache/fop/fo/extensions/svg
parent2a79fb9d8047c3b6bea4e3a557a8df05f3d3bf6a (diff)
downloadxmlgraphics-fop-78b3b2bb8f79b35fe41088b69e124b42e2f08da1.tar.gz
xmlgraphics-fop-78b3b2bb8f79b35fe41088b69e124b42e2f08da1.zip
Don't swallow the exception. At least log it.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@453919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/extensions/svg')
-rw-r--r--src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java b/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java
index 7d2ca2f72..2d8939dc2 100644
--- a/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java
+++ b/src/java/org/apache/fop/fo/extensions/svg/SVGElementMapping.java
@@ -27,6 +27,8 @@ import org.apache.fop.fo.ElementMapping;
import org.apache.batik.util.XMLResourceDescriptor;
import org.apache.batik.dom.svg.SVGDOMImplementation;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.w3c.dom.DOMImplementation;
/**
@@ -39,6 +41,9 @@ public class SVGElementMapping extends ElementMapping {
/** the SVG namespace */
public static final String URI = SVGDOMImplementation.SVG_NAMESPACE_URI;
+ /** logging instance */
+ protected Log log = LogFactory.getLog(SVGElementMapping.class);
+
private boolean batikAvailable = true;
/** Main constructor. */
@@ -79,6 +84,7 @@ public class SVGElementMapping extends ElementMapping {
foObjs.put("svg", new SE());
foObjs.put(DEFAULT, new SVGMaker());
} catch (Throwable t) {
+ log.error("Error while initializing the Batik SVG extensions", t);
// if the classes are not available
// the DISPLAY is not checked
batikAvailable = false;