cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rice Yeh (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2012) Catch Throwable, instead of Exception, in org.apache.cocoon.servlet.RequestProcessor
Date Mon, 19 Feb 2007 05:57:05 GMT
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.


Mime
View raw message