diff options
author | Chris Bowditch <cbowditch@apache.org> | 2007-07-09 16:08:55 +0000 |
---|---|---|
committer | Chris Bowditch <cbowditch@apache.org> | 2007-07-09 16:08:55 +0000 |
commit | 7d45a8cc9aebac83be9036a110901bb30d087000 (patch) | |
tree | 9ad875b17ee166598fdf1fcbd6beedf8725a80ee /src/java/org/apache/fop/area/RenderPagesModel.java | |
parent | 42579b92feb1f39e1e1fb52ab0aafa1269384ced (diff) | |
download | xmlgraphics-fop-7d45a8cc9aebac83be9036a110901bb30d087000.tar.gz xmlgraphics-fop-7d45a8cc9aebac83be9036a110901bb30d087000.zip |
In case where SAX Exception is thrown by Area Tree Parser when parsing Area Tree XML, error is logged but Exception should be passed back up to allow a calling Application to abort processing.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@554693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/RenderPagesModel.java')
-rw-r--r-- | src/java/org/apache/fop/area/RenderPagesModel.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/RenderPagesModel.java b/src/java/org/apache/fop/area/RenderPagesModel.java index ca2d51c8b..b8dc28a6f 100644 --- a/src/java/org/apache/fop/area/RenderPagesModel.java +++ b/src/java/org/apache/fop/area/RenderPagesModel.java @@ -174,6 +174,9 @@ public class RenderPagesModel extends AreaTreeModel { } catch (Exception e) { // use error handler to handle this FOP or IO Exception log.error(e); + if (e instanceof RuntimeException) { + throw (RuntimeException)e; + } } pageViewport.clear(); iter.remove(); |