W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: [indexeddb] New WebIDL Exception Model for IndexedDB

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 24 Oct 2011 16:23:46 -0700
Message-ID: <4EA5F382.7000507@mcc.id.au>
To: public-webapps@w3.org
Replying late here, but:

On 29/09/11 12:03 AM, Jonas Sicking wrote:
> From my understanding of the WebIDL spec, the idea is that
> specifications like IndexedDB should throw exceptions which use the
> DOMExceptions interface. The various errors would use different string
> values for .name which would replace the current codes that we have
> now. However, if existing ECMAScript errors can be used, we should use
> those.
>
> Cc'ing Cameron so that he can confirm that this is a correct understanding.

That's not actually what the changes allow.  The built-in Error types in 
ECMAScript are not available at the IDL level.  But I think that it 
would be better if they are.  I can lift them up to the IDL level, and 
define what it means to "throw a TypeError" in other languages.
Received on Monday, 24 October 2011 23:24:16 GMT

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