[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SAXException, checked, buy why?
On Sat, 1 Jan 2005 19:42:20 -0500, Alan Gutierrez <alan-xml-dev@e...> wrote: > What was the thinking behind making SAXException a checked > exception? We talked about a few different strategies -- having all of the callbacks throw Exception, having SAXException extend RuntimeException, and having SAXException as a distinct base type. No one less than James Gosling got in touch with me through an intermediary to argue against throwing Exception. RuntimeException was generally felt not to be the Java way (after all, IOException is checked, and XML parsing is a kind of IO). My single greatest regret about SAX, and one that I can never fix without breaking backwards compatibility, is not having SAXException extend IOException. I originally wanted to, but was too easily talked out of it. All the best, David -- http://www.megginson.com/
|
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
|