- From: Marcos Cáceres <notifications@github.com>
- Date: Thu, 24 Aug 2017 22:56:58 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 25 August 2017 05:57:19 UTC
In the Payment Request spec, I have a situation where I need to check if an id exists and throw a DOMException of some sort. I noticed that IDB is using "ConstraintError": > A mutation operation in a transaction failed because a constraint was not satisfied. But the above description is overly specific for my case. I wonder if we should reword the above to be less databasey? Same applies to "VersionError": > An attempt was made to open a database using a lower version than the existing version. should probably drop the word database, because it could, in theory apply to a any kind of versioned data store. Anyway, I'm happy to use "ConstraintError" but I'm wonder if maybe we could have a "NotUniqueError" or "DuplicateId" error? It feels like a common thing. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/428
Received on Friday, 25 August 2017 05:57:19 UTC