cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Closed: (COCOON-1869) MailMessageSender.java eats exception chain
Date Mon, 09 Oct 2006 19:19:23 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1869?page=all ]

Jörg Heinicke closed COCOON-1869.
---------------------------------

    Fix Version/s: 2.2-dev (Current SVN)
                   2.1.10-dev (current SVN)
       Resolution: Fixed

> MailMessageSender.java eats exception chain
> -------------------------------------------
>
>                 Key: COCOON-1869
>                 URL: http://issues.apache.org/jira/browse/COCOON-1869
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Mail
>    Affects Versions: 2.1.9
>            Reporter: Kaj Kandler
>         Assigned To: Jörg Heinicke
>             Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
>
> line 448 eats the chain of exceptions, which is bad for finding bugs and misconfiguration.

> It should better read:
>         } catch (MessagingException me) {
>             throw me;
> or 
>         } catch (MessagingException me) {
>             throw me; // new MessagingException(me.getMessage(),me);
> or be eliminated all together, following the principle, if you can't do anything about
an exception and don't need to aggregate it, because of API design, don't catch it in the
first place!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message