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

Re: [Bug 11348] New: [IndexedDB] Overhaul of the event model

From: Jeremy Orlow <jorlow@chromium.org>
Date: Fri, 11 Feb 2011 11:16:57 -0800
Message-ID: <AANLkTi=N6ud_CwJAg8iH_DcpxdEAB-1N1KxkkMXVviDa@mail.gmail.com>
To: ben turner <bent.mozilla@gmail.com>
Cc: Jonas Sicking <jonas@sicking.cc>, public-webapps@w3.org
On Thu, Feb 10, 2011 at 7:06 PM, ben turner <bent.mozilla@gmail.com> wrote:

> > I think generally avoiding throwing exceptions is a good thing. So for
> > .errorCode I would say returning unidentified or 0 is the way to go.
>
> I would say we should add a code to IDBDatabaseException, NO_ERR = 0.
> Or else indicate somehow that 0 is reserved for "no exception". Then
> return that from errorCode.
>
> > But it does seem like a
> > pretty bad bug if you do access these properties before having a
> > result. So maybe exception is in fact better here.
>
> Definitely agreed. People will want to know that they're checking a
> result too early.
>

Is this the behavior shipping in ff4?

J
Received on Friday, 11 February 2011 19:17:47 GMT

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