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

Re: [Bug 11406] New: [IndexedDB] IDBDatabase.transaction needs to specify exception for invalid mode parameter

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 10 Dec 2010 14:05:10 -0800
Message-ID: <AANLkTinfeVS314S7gjqnsC7XDKPmtwqkcg9zuwgxRhaU@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>, Jeremy Orlow <jorlow@chromium.org>, public-webapps@w3.org
On Fri, Dec 10, 2010 at 1:57 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> Jeremy Orlow:
>> > Similar with the direction for openCursor or anything that takes in
>> > an enum. I don't see any existing error that's a particularly good
>> > match for these. Maybe I should add an ENUM_ERR or something?
>
> Jonas Sicking:
>> Would be great if WebIDL could help out here. Cameron, I seem to
>> recall there being discussions about this, but I could be making that
>> up.
>
> For specifying which DOMException code will be raised? †Thereís
> http://www.w3.org/Bugs/Public/show_bug.cgi?id=10623 but I havenít done
> anything with that yet.

Specifying an exception to throw for functions that take enums if a
invalid value is passed to the function.

/ Jonas
Received on Friday, 10 December 2010 22:06:03 GMT

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