You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dave Kimber (JIRA)" <ji...@apache.org> on 2017/11/06 11:40:00 UTC

[jira] [Created] (EMAIL-175) MimeMessageParser should throw more specific exceptions

Dave Kimber created EMAIL-175:
---------------------------------

             Summary: MimeMessageParser should throw more specific exceptions
                 Key: EMAIL-175
                 URL: https://issues.apache.org/jira/browse/EMAIL-175
             Project: Commons Email
          Issue Type: Improvement
    Affects Versions: 1.5
            Reporter: Dave Kimber
            Priority: Minor


The following methods on MimeMessageParser all throw Exception:
{code}
parse() throws Exception
getTo() throws Exception
getCc() throws Exception
getBcc() throws Exception
getFrom() throws Exception
getReplyTo() throws Exception
getSubject() throws Exception
{code}

They can all throw more specific exception types:
{code}
parse() throws MessagingException, IOException
getTo() throws MessagingException
getCc() throws MessagingException
getBcc() throws MessagingException
getFrom() throws MessagingException
getReplyTo() throws MessagingException
getSubject() throws MessagingException
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)