commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21903] New: - Include filename or uri if Digester.parse(File file or String uri throws a SAXException
Date Sat, 26 Jul 2003 02:46:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21903>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21903

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

           Summary: Include filename or uri if Digester.parse(File file or
                    String uri throws a SAXException
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Digester
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: emeade@geekfarm.org


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?

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message