Catch Throwable, instead of Exception, in
org.apache.cocoon.servlet.RequestProcessor
------------------------------------------------------------------------------------
Key: COCOON-2012
URL: https://issues.apache.org/jira/browse/COCOON-2012
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core
Affects Versions: 2.2-dev (Current SVN)
Reporter: Rice Yeh
There are many catch-all-exceptions handling in
org.apache.cocoon.servlet.RequestProcessor, where 'catch (Exception e)' is
used. Hence, Error will not be caught. For this catching-all-exceptions purpose
handling code, it is better to use 'catch (Throwable t)' as stated in
http://www.javaworld.com/javaworld/javaqa/2003-02/02-qa-0228-evilthrow.html. I
am writing a RequestListener and expect this listener get called when any
throwables happens. Althought the method onRequestException in RequestListener
can handle any throwable, but the RequestProcessor does not catch error.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.