[jdom-interest] NoSuch*Exceptions in JDOM

Penak, Ed Ed_Penak at bmc.com
Wed Jun 28 07:04:54 PDT 2000


Hello,

I have been lurking on this list for a good while, learning JDOM and
learning from all of you on how to conduct a group discussion. My hat is off
to everybody on this list.

There appears to be two strongly opinionated groups on the NoSuchExceptions
issue. In many ways, this follows the discussion on white space. Perhaps the
solution is the same: add another method such as getNullChild() to the mix. 

Anyone calling this method would know that they were taking on the risk of a
NPE and should deal with it; no exception is ever thrown. 

Anyone needing the comfort of the exception could continue to use the
original getChild().

Is this too far out of line with the design?

Ed Penak	
ed_penak at bmc.com




More information about the jdom-interest mailing list