Skip to content

PluginEnableRefusedError

Thrown when Obsidian refuses to enable a plugin: its enablePlugin / enablePluginAndSave resolved false, because the plugin is unknown, deprecated, desktop-only on mobile, or threw while loading.

Import:

import { PluginEnableRefusedError } from '@mnaoumov/obsidian-lib/community-plugins';

Signature:

export class PluginEnableRefusedError extends Error

Extends: Error

Constructor

new PluginEnableRefusedError(pluginId: string)

Creates a PluginEnableRefusedError.