bugzilla | 29 Jun 2012 00:22
Picon

[Bug 17643] New: What should transaction.error be set to if a error handler throws an exception

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17643

           Summary: What should transaction.error be set to if a error
                    handler throws an exception
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Indexed Database API
        AssignedTo: dave.null <at> w3.org
        ReportedBy: jonas <at> sicking.cc
         QAContact: public-webapps-bugzilla <at> w3.org
                CC: mike <at> w3.org, public-webapps <at> w3.org

The most basic question is, what should happen in the following scenario:

objectStore.add("value", 1); // succeeds
req = objectStore.add("value", 1); // will fail due to key collision
req.onerror = function(e) {
  throw;
}

This should obviously abort the transaction, but should transaction.error.name
return "ConstraintError" or "AbortError".

I don't have a strong opinion.

(Continue reading)

bugzilla | 15 Jul 2012 11:20
Picon

[Bug 17643] What should transaction.error be set to if a error handler throws an exception

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17643

Jonas Sicking <jonas <at> sicking.cc> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Jonas Sicking <jonas <at> sicking.cc> 2012-07-15 09:20:58 UTC ---
http://dvcs.w3.org/hg/IndexedDB/rev/aab14b0951ca

--

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Gmane