cocoon-cvs mailing list archives

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

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

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

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java?rev=165326&r1=165325&r2=165326&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/SourceUtil.java
Fri Apr 29 11:35:35 2005
@@ -101,7 +101,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;
@@ -454,7 +454,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;



Mime
View raw message