Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Call for Votes: new name for ParseException

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: John Cowan <cowan AT mercury.ccil.org>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Call for Votes: new name for ParseException
  • Date: Wed, 23 Jul 2003 09:48:55 -0400

At 8:43 AM -0400 7/23/03, John Cowan wrote:

I guess it's too late for this, but is there any hope of my convincing
you that your unchecked exceptions should really be Errors? Your
contract is to invoke an unchecked exception when the programmer has
blundered, rather than the data being bad. This is precisely the
contract of Error.

That's a new one to me. Where did you get that idea from? It's very unusualfor a Java program to throw an Error. Errors almost always indicate a failure in the VM that can rarely be predicted or handled, e.g. OutOfMemoryError or ClassFormatError. Very few user programs should ever throw or even handle errors. The contract of error is not that the programmer has blundered. It's that the VM has failed in some way.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page