Dexie.QuotaExceededError

Inheritance Hierarchy

Description

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

NOTICE This error may occur as the inner exception of an AbortError on some browsers, as the transaction is aborted instead of onerror being signaled. To catch this error properly, always inspect error.inner on AbortError.

Sample

doSomeDatabaseWork().then(result => {
    // Success
}).catch(e => {
    if ((e.name === 'QuotaExceededError') ||
        (e.inner && e.inner.name === 'QuotaExceededError'))
    {
      // QuotaExceededError may occur as the inner error of an AbortError
      console.error ("QuotaExceeded error!");
    } else {
      // Any other error
      console.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 thrown. If signaled, there wont be any call stack.

Table of Contents