Fwd: Re: [jdom-interest] NoSuch*Exceptions in JDOM
Thomas M. Sasala
tsasala at hifusion.com
Wed Jun 28 04:58:37 PDT 2000
IMHO, exceptions are for exceptional processing.
Not having an attribute is not exceptional - especially for
HTML. An image can have a width and height or not - I
don't have to start over if it doesn't......
David Williams wrote:
> What would be the proposed benefit for returning a
> null value rather than an exception?
> Exceptions can sometimes allow you more flexibility
> when handling things... for example.. if the child
> that wasn't found WAS the entire HTML document, you
> could abort the rest of the process and/or start over,
> rather than proceed with a value that is null or
> Or maybe I've misunderstood the discussion?? (I did
> enter mid-stream)
More information about the jdom-interest