Skip to content

Dexie.OpenFailedError

David Fahlander edited this page Mar 11, 2016 · 11 revisions

Inheritance Hierarchy

Description

Happens when a db operation has failed due to that database couldn't be opened.

Sample

doSomeDatabaseWork().then(function(){
    // Success
}).catch(Dexie.OpenFailedError, function (e) {
    console.error ("open failed: " + e.message);
}).catch(Error, funtion (e) {
    // Any other error derived from standard Error
    console.error ("Error: " + e.message);
}).catch(funtion (e) {
    // Other error such as a string was thrown
    console.error (e);
});

Properties

name "OpenFailedError"
message Detailed message
inner? Inner exception instance (if any)
stack Can be present if the error was thown. If signaled, there wont be any call stack.
Clone this wiki locally