Robert Burrell Donkin (JIRA) ha scritto: > [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 > > > 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.
IMHO it does not help automatic recovery. Anyway a big +1 for this improvement: it will give us much better error reporting and problem tracking. Stefano
