Skip to content

PluginApiUnavailableError

Thrown when a plugin API cannot be handed over, carrying the PluginApiUnavailabilityReason that says why.

Import:

import { PluginApiUnavailableError } from '@mnaoumov/obsidian-lib/plugin/plugin-api';

Signature:

export class PluginApiUnavailableError extends Error

Extends: Error

Constructor

new PluginApiUnavailableError(params: PluginApiUnavailableErrorConstructorParams)

Creates a PluginApiUnavailableError.

Properties

PropertyTypeDescription
pluginIdstringThe manifest.id of the plugin whose API was requested.
reasonPluginApiUnavailabilityReasonWhich of the five failures occurred.

Links to this page: