W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

What exception to raise?

From: Vadim O. Ustiansky <ustiansk@sai.msu.ru>
Date: 08 Sep 2003 18:20:00 -0400
To: www-dom@w3.org
Message-ID: <Pine.LNX.4.44.0308151708520.25861-100000@lnfm1.sai.msu.ru>





Dear DOM WG!

Some methods may raise several types of exceptions. It can be
situations where more then one exceptional conditions are met
at the same time. Is it described anywhere how to determine
exceptions' precedence?

For example if I try to call insertBefore method on a readonly
node with newChild being the node created from a different document,
which exception should be raised: NO_MODIFICATION_ALLOWED_ERR or
WRONG_DOCUMENT_ERR?

Thanks.

-- 
Yours sincerely,
Vadim.
Received on Monday, 8 September 2003 18:20:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT