Browse Source

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
tags/fop-0_94
Chris Bowditch 17 years ago
parent
commit
7d45a8cc9a
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/java/org/apache/fop/area/RenderPagesModel.java

+ 3
- 0
src/java/org/apache/fop/area/RenderPagesModel.java View File

@@ -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();

Loading…
Cancel
Save