Skip to content

ConfigDirectoryFallbackError

Thrown when a booted owned instance reports a different app.vault.configDir than the requested ConfigDirectoryFallbackErrorConstructorParams.requestedConfigDirectory. Carries both folder names and the vault path so callers can instanceof-match and report which vault was opened wrongly.

Import:

import { ConfigDirectoryFallbackError } from 'obsidian-integration-testing';

Signature:

export class ConfigDirectoryFallbackError extends Error

Extends: Error

Constructor

new ConfigDirectoryFallbackError(params: ConfigDirectoryFallbackErrorConstructorParams)

Creates the error from the requested and actual config folders.

Properties

PropertyTypeDescription
actualConfigDirectorystringThe config folder the vault is actually using.
requestedConfigDirectorystringThe config folder that was requested.
vaultPathstringAbsolute path to the vault that was opened.

Links to this page: