You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mi...@apache.org on 2006/10/31 04:43:20 UTC

svn commit: r469359 - /xalan/java/trunk/src/org/apache/xml/serializer/ToXMLStream.java

Author: minchau
Date: Mon Oct 30 19:43:19 2006
New Revision: 469359

URL: http://svn.apache.org/viewvc?view=rev&rev=469359
Log:
Committing the patch in XALANJ-2312

Modified:
    xalan/java/trunk/src/org/apache/xml/serializer/ToXMLStream.java

Modified: xalan/java/trunk/src/org/apache/xml/serializer/ToXMLStream.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/serializer/ToXMLStream.java?view=diff&rev=469359&r1=469358&r2=469359
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/serializer/ToXMLStream.java (original)
+++ xalan/java/trunk/src/org/apache/xml/serializer/ToXMLStream.java Mon Oct 30 19:43:19 2006
@@ -498,7 +498,15 @@
                 else
                   System.out.println(msg);
                 }
-            catch (Exception e){}             
+            catch (TransformerException e){
+                // A user defined error handler, errHandler, may throw
+                // a TransformerException if it chooses to, and if it does
+                // we will wrap it with a SAXException and re-throw.
+                // Of course if the handler throws another type of
+                // exception, like a RuntimeException, then that is OK too.
+                SAXException se = new SAXException(e);
+                throw se;                
+            }             
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org