Re: WRONG_DOCUMENT_ERR, possible wiggle room from the definition of the exception

Hmmm. Normally I'd say that the description of the operation which throws
the exception dominates over the description of the exception, but this
does raise the question of whether the wiggle room is
allowed-but-not-currently used (which may be perfectly reasonable, as
exceptions may be reused in the future) or if the operation description is
stricter than it need be.

I honestly don't know. Someone should dig back into the archives to check.

I don't have strong opinions either way on this one. Permitting it to
happen does risk letting folks write nonportable code... but if it's
documented that the exception may be thrown, then if they fail to catch it
and do something reasonable about it (or avoid provoking it in the first
place), that's their own fault.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk

Received on Friday, 2 December 2005 16:22:03 UTC