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

PR-DOM-Level-1-19980818 question

From: Richard Emberson <emberson@faslab.com>
Date: Wed, 26 Aug 1998 10:00:56 -0700
Message-Id: <199808261700.KAA03274@edinburgh.faslab.com>
To: www-dom@w3.org
Cc: emberson@berkeley.faslab.com

DOMExceptions are thrown for a variety of reasons.
What is thrown when a parameter to a method is null?

For instance, in the method appendChild in the Node interface,
what happens when newChild == null?

    public Node appendChild(Node newChild) {

Before the WRONG_DOCUMENT_ERR condition can be tested one must
first make sure the argument is not null.

Richard Emberson
Received on Wednesday, 26 August 1998 13:00:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC