Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] No-args exception constructors

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: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] No-args exception constructors
  • Date: Mon, 1 Dec 2003 12:07:38 -0500

Brendan Humphreys ran the Clover unit test coverage tool across XOM. Results are at http://www.cafeconleche.org/XOM/clover_html/

One thing I noticed from this is that most of the exception no-args constructors aren't tested, which made me wonder is anybody using these? Would it be a good idea to just delete them all? This would have the effect of requiring a message to be specified for each exception that was created. That should be happening most of the time in the XOM code base now anyway.

Does anyone care to argue in favor of or against no-args constructors for exceptions? Can anyone point me at any references that discuss the relative advantages and disadvantages of allowing message-less exceptions?
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA


  • [XOM-interest] No-args exception constructors, Elliotte Rusty Harold, 12/01/2003

Archive powered by MHonArc 2.6.24.

Top of Page