[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] Created: (LANG-585)
From:       "Sebb (JIRA)" <jira () apache ! org>
Date:       2010-01-31 1:35:34
Message-ID: 446205966.155651264901734577.JavaMail.jira () brutus ! apache ! org
[Download RAW message or body]

exception.DefaultExceptionContext.getFormattedExceptionMessage catches Throwable
--------------------------------------------------------------------------------

                 Key: LANG-585
                 URL: https://issues.apache.org/jira/browse/LANG-585
             Project: Commons Lang
          Issue Type: Bug
            Reporter: Sebb


It's generally a bad idea to catch Throwable.

The getFormattedExceptionMessage method should be changed to catch less; e.g. \
Exception + RuntimeException should be adequate.

The Javadoc examples in ContextedException and ContextedRuntimeException suggest \
catching Throwable; these examples should be changed too.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic