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

2010-12-10 Thread Cameron McCormack
Jonas Sicking: > Specifying an exception to throw for functions that take enums if a > invalid value is passed to the function. Ah, I misunderstood. Would you want a standard exception (like TypeError, or one of the DOMExceptions from DOM Core) or be able to have the IDL specify what exception is

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

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 1:57 PM, Cameron McCormack 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 Si

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

2010-12-10 Thread Cameron McCormack
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 s

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

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 7:49 AM, Jeremy Orlow wrote: > 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? Would be great if WebIDL could help out h

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

2010-12-10 Thread 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? J On Thu, Nov 25, 2010 at 12:42 PM, wrote: > http://www.w3.org/Bugs/Public/show_bug.cgi?id=11406

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

2010-11-25 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11406 Summary: [IndexedDB] IDBDatabase.transaction needs to specify exception for invalid mode parameter Product: WebAppsWG Version: unspecified Platform: PC OS/Version: All