W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

Re: a more JavaScripty binding for exceptions

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 12 Apr 2011 14:57:28 +1200
To: public-script-coord@w3.org
Cc: jonas@sicking.cc
Message-ID: <20110412025727.GC10254@wok.mcc.id.au>
Cameron McCormack:
> Here is a proposal for changing this:
> 
> * IDL exceptions will be allowed to inherit from other exceptions
> 
> * exceptions not declared to inherit from another will inherit from
>   the Error prototype in the JS binding
…
> * in JS, each exception constructor function will take a single argument
>   for the exception message, just like the built-in Error objects do

This has been done now: http://dev.w3.org/2006/webapi/WebIDL/#es-exceptions

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 12 April 2011 02:58:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC