W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

[IndexedDB] Exceptions on IndexedDatabaseRequest.open

From: Jeremy Orlow <jorlow@chromium.org>
Date: Wed, 31 Mar 2010 14:42:37 +0100
Message-ID: <q2k5dd9e5c51003310642tb9af3f95ofa711df1b0bcb2dc@mail.gmail.com>
To: public-webapps WG <public-webapps@w3.org>
What is the purpose of allowing IndexedDatabaseRequest (
http://dev.w3.org/2006/webapi/WebSimpleDB/#idl-def-IndexedDatabaseRequest)
to raise an exception?  The only mention of it in the spec is that it raises
a NON_TRANSIENT_ERR "if the name parameter is not valid".  But it's not
mentioned in
http://dev.w3.org/2006/webapi/WebSimpleDB/#dfn-steps-for-opening-a-database or
anywhere else as far as I can tell.

I don't see any reason to special case this one method with synchronous
properties.  "If the name parameter is not valid" or any other error, I
think it should be returned via an error callback just like everywhere else.

J
Received on Wednesday, 31 March 2010 13:43:27 GMT

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