Dexie.QuotaExceededError

Inheritance Hierarchy

Description

The storage quota for the current origin was exceeded. To learn more about storage quota, see Storage Manager API.

Sample using Promise.catch()

doSomeDatabaseWork().then(result => {
    // Success
}).catch('QuotaExceededError', e => {
    // Failed with QuotaExceededError
    console.error ("QuotaExceeded error: " + e.message);
}).catch(Error, e => {
    // Any other error derived from standard Error
    console.error ("Error: " + e.message);
}).catch(e => {
    // Other error such as a string was thrown
    console.error (e);
});

Sample: switch(error.name)

db.on('error', function (error) {
    switch (error.name) {
        // errnames.QuotaExceeded ==="QuotaExceededError"
        case Dexie.errnames.QuotaExceeded:
            console.error ("QuotaExceeded error");
            break;
        default:
            console.error ("error: " + e);
    }
});

Properties

nameWill always be Dexie.errnames.QuotaExceeded === "QuotaExceededError"
messageDetailed message
inner?Inner exception instance (if any)
stackCan be present if the error was thown. If signaled, there wont be any call stack.

Table of Contents