Dexie.DataError
Inheritance Hierarchy
Description
Sample
const db = new Dexie('testdb');
db.version(1).stores({
foo: 'id,bar'
});
db.foo.put({id: null}); // fails with DataError because null is not indexable.
db.foo.put({id: 1, bar: null}); // succeeds but won't generate any "bar" index.
db.foo.where('bar').equals(undefined).toArray(); // Fails with DataError since undefined is not indexable.
Sample using Promise.catch()
Sample: switch(error.name)
Properties
name
Will always be Dexie.errnames.Data === "DataError"