/[Apache-SVN]/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java
ViewVC logotype

Diff of /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java	2005/04/29 17:54:07	165321
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java	2005/04/29 18:13:40	165322
@@ -96,9 +96,13 @@ public final class SourceUtil {
             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;
                 }
@@ -447,6 +451,11 @@ public final class SourceUtil {
         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;
             }

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26