Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1869

MailMessageSender.java eats exception chain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.9
    • 2.1.10, 2.2
    • Blocks: Mail
    • None
    • Patch available

    Description

      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!


      Attachments

        Activity

          People

            joerg.heinicke@gmx.de Jörg Heinicke
            kajkandler@conficio.com Kaj Kandler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: