Prefer Error than exception for DataCloneError and DataError

In put and add method of object store and index, DataCloneError and
DataError are immediately throw before executing IDBRequest. It seems good
that exception are throw immediately, but in practical use case, these
exception are in async workflow (inside transaction callback). Exception
break the async workflow, depending on usage design pattern.

Alternatively, these exception could transform into IDBRequest.onerror
event. In this ways, we can gracefully handle such unexpected error.

Received on Tuesday, 30 April 2013 04:24:24 UTC