cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r161068 - cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
Date Tue, 12 Apr 2005 16:09:48 GMT
Author: sylvain
Date: Tue Apr 12 09:09:47 2005
New Revision: 161068

URL: http://svn.apache.org/viewcvs?view=rev&rev=161068
Log:
Propagate exception if there is no error-handler

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java?view=diff&r1=161067&r2=161068
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
Tue Apr 12 09:09:47 2005
@@ -493,10 +493,15 @@
                     return;
                 }
             } catch (ProcessingException e) {
+                // Log the original exception
+                getLogger().error("Failed to process error handler for exception", e);
                 throw e;
             } catch (Exception e) {
                 throw new ProcessingException("Failed to handle exception <" + ex + ">",
e);
             }
+        } else {
+            // propagate exception if we have no error handler
+            throw ex;
         }
     }
 



Mime
View raw message