W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [DOM4] Constructor for DOMException?

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 23 Feb 2012 10:57:54 +1100
Message-ID: <4F458102.5050706@mcc.id.au>
To: Anne van Kesteren <annevk@opera.com>
CC: public-webapps@w3.org
João Eiras:
>> DOMExceptions have both a code and a message. Perhaps the
>> constructor should be extended to include both.

Anne van Kesteren:
> code is legacy, but name would be good to expose.

The constructor has the same signature as the standard ECMAScript Error 
constructors, so we are being consistent there.  I think it's fine for 
code and name to be assigned after creating the object, if JS needs to 
create a DOMException object (which I don't expect to be a common thing 
Received on Wednesday, 22 February 2012 23:58:28 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC