- From: ben turner <bent.mozilla@gmail.com>
- Date: Thu, 10 Feb 2011 19:06:48 -0800
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: Jeremy Orlow <jorlow@chromium.org>, public-webapps@w3.org
> 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. -Ben
Received on Friday, 11 February 2011 03:07:40 UTC