Re: property addition for simplified debugging?
Aleksander Slominski <[email protected]> Mon, 07 Apr 2003 11:13:07 -0500
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
Stefan Haustein wrote: >would it make sense to have a "location" or "url" or similar property that can >be set to inform the parser about the file location, which would be contained in >the XmlPullParserException text? > >The problem is: When you are parsing lots of files, it is always necessary to >catch parsing exceptions and to rethrow new exceptions including the file >location to find the XML file causing the error.... > > in some cases (like reading from socket) this is not needed that much however i agree that it would make error reporting for batch processing more useful. what about adding optional string property with location of input that when supported and set after setInput() is used in getPositionDescription() and in exception messages? alek -- "Mr. Pauli, we in the audience are all agreed that your theory is crazy. What divides us is whether it is crazy enough to be true." Niels H. D. Bohr ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/2U_rlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/