You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2005/04/29 20:36:00 UTC

svn commit: r165327 - /cocoon/trunk/src/java/org/apache/cocoon/components/source/SourceUtil.java

Author: vgritsenko
Date: Fri Apr 29 11:35:59 2005
New Revision: 165327

URL: http://svn.apache.org/viewcvs?rev=165327&view=rev
Log:
handle *and* throw it

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=165327&r1=165326&r2=165327&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:35:59 2005
@@ -98,7 +98,7 @@
             final Exception cause = e.getException();
             if (cause != null) {
                 if (cause instanceof SourceException) {
-                    handle((SourceException) cause);
+                    throw handle((SourceException) cause);
                 }
                 if (cause instanceof ProcessingException) {
                     throw (ProcessingException) cause;
@@ -378,7 +378,7 @@
             // Handle SourceException.
             // See also toSax(XMLizable, ContentHandler
             if (cause instanceof SourceException) {
-                handle((SourceException) cause);
+                throw handle((SourceException) cause);
             }
             if (cause instanceof ProcessingException) {
                 throw (ProcessingException) cause;