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

    Class PluginAssetCacheError

    Tagged error for cache operations. Construction sites supply context.operation (one of 'cache' | 'evict' | 'resolve' | 'list') and context.pluginId so downstream handlers can route on the failed call without scanning the message.

    Hierarchy

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

    Constructors

    • Parameters

      • Optionaloptions: BaseErrorOptions

      Returns PluginAssetCacheError

    Properties

    cause?: unknown
    context: Record<string, unknown>
    name: "PluginAssetCacheError"
    stack?: string
    name: "PluginAssetCacheError"
    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: "PluginAssetCacheError";
          stack?: string;
          get _tag(): Name;
          get message(): string;
      }