[
https://issues.apache.org/jira/browse/EMAIL-175?focusedWorklogId=235978&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-235978
]
ASF GitHub Bot logged work on EMAIL-175:
----------------------------------------
Author: ASF GitHub Bot
Created on: 01/May/19 20:40
Start Date: 01/May/19 20:40
Worklog Time Spent: 10m
Work Description: markt-asf commented on pull request #3: EMAIL-175 more
specific exception types for MimeMessageParser
URL: https://github.com/apache/commons-email/pull/3
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 235978)
Time Spent: 10m
Remaining Estimate: 0h
> 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
> Labels: easyfix, newbie
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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
(v7.6.3#76005)