Re: [IndexedDB] Reason for aborting transactions

On Wed, Feb 9, 2011 at 5:17 PM, ben turner <bent.mozilla@gmail.com> wrote:

> Hm, Jeremy is right, If you want to look just at the transaction and
> see why it aborted you can't rely on errorCode. Ick.
>
> The only thing I'd change then is the abortMessage property. It's
> easier to tell why your transaction aborted with the error code, and
> I'd hate people doing string comparisons instead of checking the error
> code. And what about localization?
>

Normal exceptions have error messages that are not consistient across
implementations and are not localized.  What's the difference?

For stuff like internal errors, they seem especially important.

J

Received on Thursday, 10 February 2011 01:22:47 UTC