MCPcopy
hub / github.com/apache/pouchdb / idbError

Function idbError

lib/index-browser.js:4718–4726  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

4716}
4717
4718function idbError(callback) {
4719 return function (evt) {
4720 var message = 'unknown_error';
4721 if (evt.target && evt.target.error) {
4722 message = evt.target.error.name || evt.target.error.message;
4723 }
4724 callback(createError(IDB_ERROR, message, evt.type));
4725 };
4726}
4727
4728// Unfortunately, the metadata has to be stringified
4729// when it is put into the database, because otherwise

Callers 4

startTransactionFunction · 0.70
idbAllDocsFunction · 0.70
changesFunction · 0.70
initFunction · 0.70

Calls 1

createErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…