Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-85

[digester] Include filename or uri if Digester.parse(File file or String uri throws a SAXException

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      21903

      Description

      Would make debugging easier.

      A try catch SAXException block around the getXMLReader().parse(input); statements in the parse
      File and parse(String would allow the SAX Exception to be caught, taken apart, an error statement
      with file or uri added, and thrown.

      But how to capture the first stack trace? Use NestedExceptions from jakarta-commons-lang? Use
      org.apache.commons.lang.exception.ExceptionUtils.getStackTrace and and cram the first stack
      trace in the with new SAXExceptions? Or avoid the new dependecy on lang and do something
      else?

        Attachments

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              emeade@geekfarm.org Erik Meade
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: