Dexie.UpgradeError()

Inheritance Hierarchy

Description

Happens when the database could not be upgraded.

Sample

try {
    await doSomeDatabaseWork();
} catch(error) {
    if (error?.name === Dexie.errnames.UpgradeError) {
        // Handle UpgradeError error...
        console.error ("UpgradeError error: " + e.message);
    } else {
        // Handle or rethrow other errors
        ...
    }
}

Properties

nameWill always be Dexie.errnames.Upgrade === "UpgradeError"
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