cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r165323 - /cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java
Date Fri, 29 Apr 2005 18:14:29 GMT
Author: vgritsenko
Date: Fri Apr 29 11:14:29 2005
New Revision: 165323

URL: http://svn.apache.org/viewcvs?rev=165323&view=rev
Log:
handle SourceException

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java?rev=165323&r1=165322&r2=165323&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java Fri Apr 29 11:14:29
2005
@@ -93,9 +93,13 @@
             source.toSAX(handler);
         } catch (SAXException e) {
             // Unwrap ProcessingException, IOException, and extreme cases of SAXExceptions.
+            // Handle SourceException.
             // See also handleSAXException
             final Exception cause = e.getException();
             if (cause != null) {
+                if (cause instanceof SourceException) {
+                    handle((SourceException) cause);
+                }
                 if (cause instanceof ProcessingException) {
                     throw (ProcessingException) cause;
                 }
@@ -371,6 +375,11 @@
         final Exception cause = e.getException();
         if (cause != null) {
             // Unwrap ProcessingException, IOException, and extreme cases of SAXExceptions.
+            // Handle SourceException.
+            // See also toSax(XMLizable, ContentHandler
+            if (cause instanceof SourceException) {
+                handle((SourceException) cause);
+            }
             if (cause instanceof ProcessingException) {
                 throw (ProcessingException) cause;
             }



Mime
View raw message