[ 
https://issues.apache.org/jira/browse/MAILET-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Danny Angus resolved MAILET-8.
------------------------------

    Resolution: Fixed

Resolved by 565816
Changing ParseException to AddressException permits the incusion of ref (the 
string) and pos (the position) parameters.
AddressException extends ParseException so this change is backwards compatible 
with existing catch and throws.

> [API Design] Reconsider use of ParseException
> ---------------------------------------------
>
>                 Key: MAILET-8
>                 URL: https://issues.apache.org/jira/browse/MAILET-8
>             Project: Mailet API
>          Issue Type: Improvement
>          Components: Core API
>            Reporter: Robert Burrell Donkin
>            Assignee: Danny Angus
>
> ParseException is thrown by MailAddress. The typical use case is parsing a 
> string and encountering an issue at a position. A message is then constructed 
> detailing the position and (preferably) the string being parsed. 
> Perhaps it might be useful to include the position and string being parsed as 
> properties of the exception. This would may allow callers to attempt recovery 
> rather than just fail the transaction.   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to