]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Improve handling of property errors
authorKaren Lease <klease@apache.org>
Wed, 15 Nov 2000 22:58:11 +0000 (22:58 +0000)
committerKaren Lease <klease@apache.org>
Wed, 15 Nov 2000 22:58:11 +0000 (22:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193817 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/Property.java

index fc88552796e58fe98b6dcac8f86acbe9d45c5d18..552bff53e208a7f23d2c4ac691852092733947c1 100644 (file)
@@ -208,12 +208,16 @@ public class Property {
        Property p = PropertyParser.parse(pvalue,
                                new PropertyInfo(this, propertyList, fo));
        pret = convertProperty(p, propertyList, fo);
-       if (pret != null && inheritsSpecified())
+       if (pret == null) {
+         throw new org.apache.fop.fo.expr.PropertyException("No conversion defined");
+       }
+       else if (inheritsSpecified()) {
          pret.setSpecifiedValue(pvalue);
+       }
        return pret;
       } catch (org.apache.fop.fo.expr.PropertyException propEx) {
-       MessageHandler.errorln("Error in " + propName + " property value"
-                          + propEx);
+       MessageHandler.errorln("Error in " + propName + " property value '"
+                              + value + "': " + propEx);
        throw new FOPException("Property error");
       }
     }