You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by cb...@apache.org on 2007/07/09 18:08:56 UTC

svn commit: r554693 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java

Author: cbowditch
Date: Mon Jul  9 09:08:55 2007
New Revision: 554693

URL: http://svn.apache.org/viewvc?view=rev&rev=554693
Log:
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.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java?view=diff&rev=554693&r1=554692&r2=554693
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java Mon Jul  9 09:08:55 2007
@@ -174,6 +174,9 @@
                 } 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();



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org