Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1189

Wrap character encoding related exceptions in the SAXException being reported

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.1
    • 2.9.1
    • SAX
    • None

    Description

      During parsing (XMLReader.parse()), when a character encoding problem happens on the input (e.g. a java.io.CharConversionException is thrown) it is reported as SAXException but any trace from the original exception is lost (except the exception message) thus making it harder to recognize the initial problem. Making the original exception accessible through SAXException.getException() (and/or Exception.getCause()) will help in recognizing character encoding problems easier.

      Attachments

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            stanio Stanimir Stamenkov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: