@dxos/app-framework - v0.9.0
    Preparing search index...

    Class PluginDependencyError

    Tagged error for plugin-level dependency resolution failures.

    context.id is the plugin id the manager was acting on. context.reason discriminates the failure mode:

    • 'missing' — declared dep is neither registered nor in the catalog. context.missing lists offending ids.
    • 'install-failed' — dep was found in the catalog but add() failed. cause carries the original error.
    • 'cycle' — closure walk detected a cycle. context.path is the cycle path.
    • 'core-dependent' — cascade-disable would have to disable a core plugin. context.coreDependent is the blocking id.

    Hierarchy

    • {
          cause?: unknown;
          context: Record<string, unknown>;
          name: "PluginDependencyError";
          stack?: string;
          get _tag(): Name;
          get message(): string;
      }
      • PluginDependencyError
    Index

    Constructors

    • Parameters

      • Optionaloptions: BaseErrorOptions

      Returns PluginDependencyError

    Properties

    cause?: unknown
    context: Record<string, unknown>
    name: "PluginDependencyError"
    stack?: string
    name: "PluginDependencyError"
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any
    stackTraceLimit: number

    Accessors

    • get _tag(): Name

      Returns Name

    • get message(): string

      Fallback message.

      Returns string

    Methods

    • Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • Type Parameters

      • Name extends string = string

      Parameters

      • name: Name
      • Optionalmessage: string

      Returns any

    • Parameters

      • error: unknown

      Returns error is BaseError<string>

    • Parameters

      • error: unknown

      Returns error is Error

    • Parameters

      • Optionaloptions: Omit<BaseErrorOptions, "cause"> & { ifTypeDiffers?: boolean }

      Returns (
          error: unknown,
      ) => {
          cause?: unknown;
          context: Record<string, unknown>;
          name: "PluginDependencyError";
          stack?: string;
          get _tag(): Name;
          get message(): string;
      }