Uploaded image for project: 'James Mailet'
  1. James Mailet
  2. MAILET-8

[API Design] Reconsider use of ParseException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Core API
    • None

    Description

      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.

      Attachments

        Activity

          People

            danny@apache.org Danny Angus
            robertburrelldonkin Robert Burrell Donkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: