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

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 UTC