diff options
author | Karen Lease <klease@apache.org> | 2000-11-15 22:58:11 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2000-11-15 22:58:11 +0000 |
commit | ffe8188a54d2edd3199ef6de9cbd51a9f510c8fc (patch) | |
tree | be94fb9e2d6f38ac543a667740cbed8c4b6d62e3 | |
parent | 273bbf402d7a18f590d9e1216349fb51c2589e9c (diff) | |
download | xmlgraphics-fop-ffe8188a54d2edd3199ef6de9cbd51a9f510c8fc.tar.gz xmlgraphics-fop-ffe8188a54d2edd3199ef6de9cbd51a9f510c8fc.zip |
Improve handling of property errors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193817 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/fo/Property.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/Property.java b/src/org/apache/fop/fo/Property.java index fc8855279..552bff53e 100644 --- a/src/org/apache/fop/fo/Property.java +++ b/src/org/apache/fop/fo/Property.java @@ -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"); } } |