From 7d45a8cc9aebac83be9036a110901bb30d087000 Mon Sep 17 00:00:00 2001 From: Chris Bowditch Date: Mon, 9 Jul 2007 16:08:55 +0000 Subject: 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 --- src/java/org/apache/fop/area/RenderPagesModel.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/java/org/apache/fop/area') 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(); -- cgit v1.2.3