Skip to content

PluginApiValidationError

Thrown when a published API’s payload fails the schema its contract declares.

Only ever thrown while the obsidian-dev-utils:PluginApi debugger is enabled — in production the methods are not wrapped at all.

Import:

import { PluginApiValidationError } from 'obsidian-dev-utils/obsidian/plugin/plugin-api';

Signature:

export class PluginApiValidationError extends Error

Extends: Error

Constructor

new PluginApiValidationError(params: PluginApiValidationErrorConstructorParams)

Creates a PluginApiValidationError.

Properties

PropertyTypeDescription
issuesreadonly StandardSchemaV1.Issue[]The issues the schema reported.
methodNamestringThe name of the method whose payload failed validation.
pluginIdstringThe manifest.id of the providing plugin.

Links to this page: