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;
}
}