Dexie.SchemaError

Inheritance Hierarchy

Description

Happens when the database schema has errors.

Sample using Promise.catch()

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

Properties

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