From: Jeremias Maerki Date: Tue, 17 May 2005 07:00:15 +0000 (+0000) Subject: Better error message if the image class can't be instantiated. X-Git-Tag: fop-0_90-alpha1~674 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0f80e203b0e56f4926eb2fba1c4404afda8d5223;p=xmlgraphics-fop.git Better error message if the image class can't be instantiated. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198633 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/image/ImageFactory.java b/src/java/org/apache/fop/image/ImageFactory.java index 10b14895e..1060144fd 100644 --- a/src/java/org/apache/fop/image/ImageFactory.java +++ b/src/java/org/apache/fop/image/ImageFactory.java @@ -200,6 +200,10 @@ public class ImageFactory { 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);