Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-172

Define how to deal with parsing error while building the DOM (ParsedField.isValid/getParseException seems unintuitive: anything better?)

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.6
    • 0.8.0
    • project
    • None

    Description

      ParsedField interface has "isValid" and "getParseException": from the DOM perspective a field should always be valid, shouldn't it? Shouldn't we throw exception during parsing instead of building the dom node with "isValid"/"getParseException" methods? Can you provide an use case where an exception/monitor during parsing is not enough and we need to carry the "invalidity" to the DOM?
      (extracted from MIME4J-156 comments)

      Attachments

        Activity

          People

            Unassigned Unassigned
            bago Stefano Bagnara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: