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

Re: [DOM4] Constructor for DOMException?

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 22 Feb 2012 15:32:26 +0100
To: public-webapps@w3.org
Message-ID: <op.v9230cp864w2qv@annevk-macbookpro.local>
On Wed, 22 Feb 2012 15:27:41 +0100, João Eiras <joaoe@opera.com> wrote:
> On Wed, 22 Feb 2012 00:00:24 +0100, Cameron McCormack <cam@mcc.id.au>  
> wrote:
>> Web IDL already requires exception interface objects like DOMException  
>> to be constructable, due to this:
>>
>>    http://dev.w3.org/2006/webapi/WebIDL/#es-exception-call
>>
>> and them being Function objects.  The constructor should take a single  
>> argument which is the message.
>
> DOMExceptions have both a code and a message. Perhaps the constructor  
> should be extended to include both.

code is legacy, but name would be good to expose.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 22 February 2012 14:32:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT