Author: sylvain
Date: Tue Apr 12 13:11:21 2005
New Revision: 161110
URL: http://svn.apache.org/viewcvs?view=rev&rev=161110
Log:
Log the original exception if error-handler fails
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
Modified:
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
URL:
http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java?view=diff&r1=161109&r2=161110
==============================================================================
---
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
(original)
+++
cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
Tue Apr 12 13:11:21 2005
@@ -534,10 +534,11 @@
}
} catch (ProcessingException e) {
// Log the original exception
- getLogger().error("Failed to process error handler for
exception", e);
+ getLogger().error("Failed to process error handler for
exception", ex);
throw e;
} catch (Exception e) {
- throw new ProcessingException("Failed to handle exception <" +
ex + ">", e);
+ getLogger().error("Failed to process error handler for
exception", ex);
+ throw new ProcessingException("Failed to handle exception <" +
ex.getMessage() + ">", e);
}
} else {
// propagate exception if we have no error handler