Move each error family out of domain/errors.ts into its own module (base, core, provider selection/adapter, browser observation, artifact, evidence, unknown registry, hopper, configuration) and relocate AnalysisErrorProjection to analysisErrorProjection. Migrate all 162 importers to the owning modules and delete errors.ts. No re-export shims; behavior is unchanged.
21 lines
795 B
TypeScript
21 lines
795 B
TypeScript
import type { JsonValue } from "./jsonValue.js";
|
|
import { ProviderAdapterError } from "./providerAdapterError.js";
|
|
|
|
/** Provider resources could not be proven closed after bounded cleanup. */
|
|
export class ProviderCleanupError extends ProviderAdapterError {
|
|
override readonly cleanupIncomplete = true;
|
|
override readonly cleanupResources: readonly string[];
|
|
override readonly userMessage =
|
|
"Provider cleanup could not be fully confirmed. Review the reported local resources before opening another target.";
|
|
|
|
constructor(
|
|
providerId: string,
|
|
resources: readonly string[],
|
|
diagnostics: Readonly<Record<string, JsonValue>>,
|
|
options?: ErrorOptions,
|
|
) {
|
|
super(providerId, "close_binary", { ...options, diagnostics });
|
|
this.cleanupResources = [...resources];
|
|
}
|
|
}
|