[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SAX Exception Handling
At 17:45 04/05/98 +0700, James Clark wrote: >The original goal of SAX was to be simple and easy to use for >application writers. I hope that it still is - I appreciate that we have had some drift, but much of it has centered on Exceptions. >I don't think requiring this sort of mumbo jumbo >even for trivial programs is consistent with this goal. > >I don't see an ideal solution, This seems to be a problem that is fundamental to Exception handling in general (not SAX-specific). It's compounded by the fact that we need to (a) interoperate with Java Exceptions (b) assume that SAX will be put alongside packages that have yet another set of Exceptions. I spent yesterday afternoon hacking the new SAX/AElfred including the extraction of error messages and transferring them to display of nonwf documents. My blunderings weren't pretty (I failed to realise that one test example threw FileNotFoundException rather than a parsing error, and couldn't understand why I couldn't extract the SAXException message). But I think I can work with the current SAX. (I was one of those who suggested SAX should 'wrap' Exceptions, so pillory me.) >but I can think of several possibilities >in addition to the old solution and the current solution, any of which I >think would be an improvement over the current solution: [... workable solutions snipped ...] I am sure that David will look at these carefully - I think the final decision is essentially his - he has put in *so* much work and got enough public and private mail to make a balanced decision. David must feel like he's on a never-ending marathon - if he feels that SAX1.0gamma is 'it', I think we should accept it. [Every finalisation has bits that someone doesn't like, even XML...] P. Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic net connection VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary http://www.venus.co.uk/vhg xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|