LocalDataStoreClosedError
Thrown by every operation of a LocalDataStore whose connection is closed or closing.
It replaces IndexedDB’s raw InvalidStateError (“The database connection is closing”), which names neither the store nor the cause. The usual cause is work that outlived its owner: a debounced or scheduled save that runs after the plugin unloaded and closed its store.
Import:
import { LocalDataStoreClosedError } from '@mnaoumov/obsidian-lib/data-stores/local-data-store';Signature:
export class LocalDataStoreClosedError extends ErrorExtends: Error
Constructor
new LocalDataStoreClosedError(databaseName: string, reason: LocalDataStoreCloseReason, options?: LocalDataStoreClosedErrorConstructorOptions | undefined)Creates a LocalDataStoreClosedError.
Links to this page: