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 je...@apache.org on 2005/05/17 09:00:15 UTC
cvs commit: xml-fop/src/java/org/apache/fop/image ImageFactory.java
jeremias 2005/05/17 00:00:15
Modified: src/java/org/apache/fop/image ImageFactory.java
Log:
Better error message if the image class can't be instantiated.
Revision Changes Path
1.10 +4 -0 xml-fop/src/java/org/apache/fop/image/ImageFactory.java
Index: ImageFactory.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/image/ImageFactory.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ImageFactory.java 11 Oct 2004 21:06:14 -0000 1.9
+++ ImageFactory.java 17 May 2005 07:00:15 -0000 1.10
@@ -200,6 +200,10 @@
log.error("Error creating FopImage object ("
+ href + "): " + msg, (t == null) ? ex : t);
return null;
+ } catch (InstantiationException ie) {
+ log.error("Error creating FopImage object ("
+ + href + "): Could not instantiate " + imgClassName + " instance");
+ return null;
} catch (Exception ex) {
log.error("Error creating FopImage object ("
+ href + "): " + ex.getMessage(), ex);
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org