Skip to content

ResourceLockedError

Thrown by the vault-mutation blocker when a plugin tries to edit, delete, rename, move, or create a resource whose path is covered by a lock taken with ResourceLockComponentLockForPathParams.shouldBlockMutations.

Import:

import { ResourceLockedError } from 'obsidian-dev-utils/obsidian/resource-lock';

Signature:

export class ResourceLockedError extends Error

Extends: Error

Constructor

new ResourceLockedError(path: string)

Creates a ResourceLockedError.

Properties

PropertyTypeDescription
pathstringThe vault path whose mutation was blocked.

Links to this page: