Dexie.QuotaExceededError

Inheritance Hierarchy

  • Error

    • Dexie.DexieError

      • Dexie.QuotaExceededError

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

name
Will always be Dexie.errnames.QuotaExceeded === "QuotaExceededError"

message

Detailed message

inner?

Inner exception instance (if any)

stack

Can be present if the error was thrown. If signaled, there wont be any call stack.