[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAXException, checked, buy why?

  • To: xml-dev@l...
  • Subject: Re: SAXException, checked, buy why?
  • From: David Megginson <david.megginson@g...>
  • Date: Sat, 1 Jan 2005 22:03:54 -0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=uc+8j/W08ptIkPx+ebTHolVC95Unq9socWTYttmVoV0J91CdJFCEGrl7wAtuJnFu8+6LNi5/iHpbC52u2XpjllpA73uY5NfqcRuKH92letHv/npZWzpNon8uNgs8I6jHEm7AezPULwINF5VQ06L5qcTpAElrz247XD04OduqkTM=
  • In-reply-to: <20050102004220.GA25911@m...>
  • References: <20050102004220.GA25911@m...>
  • Reply-to: David Megginson <david.megginson@g...>

1 gosling gmail.com
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.