Issue Details (XML | Word | Printable)

Key: EMAIL-78
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Siegfried Goeschl
Reporter: Aaron Digulla
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Commons Email

Better error message in MultiPartEmail.attach()

Created: 30/Apr/08 02:27 PM   Updated: 10/Feb/09 01:55 AM
Return to search
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works EMAIL-78-patch.txt 2008-11-24 09:40 AM Corey Scott 0.8 kB

Resolution Date: 06/Feb/09 05:03 PM


 Description  « Hide
Please replace line 367 of org.apache.commons.mail.MultiPartEmail

[code]
throw new EmailException("Invalid URL set");
[code]

with

[code]
throw new EmailException("Invalid URL: "+url, e);
[code]

to generate a better error message when an IOException is thrown.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Corey Scott added a comment - 24/Nov/08 09:40 AM
Re-throws exceptions as appropriate

Siegfried Goeschl added a comment - 06/Feb/09 04:57 PM
Hi Corey, any reason why not to pass the invalid URL parameter into the exception msg?

Siegfried Goeschl added a comment - 06/Feb/09 05:03 PM
Applied the patch and added the URL parameter to the exception message.

Corey Scott added a comment - 10/Feb/09 01:55 AM
Nope, I cant think of a reason why I didnt pass it. Thanks for catching and fixing this.