knowhub
Version:
Synchronize AI coding–agent knowledge files (rules, templates, guidelines) across your project.
24 lines • 1.06 kB
TypeScript
export declare class KnowhubError extends Error {
code?: string | undefined;
constructor(message: string, code?: string | undefined);
}
export declare class ConfigurationError extends KnowhubError {
configPath?: string | undefined;
constructor(message: string, configPath?: string | undefined);
}
export declare class ResourceError extends KnowhubError {
resourcePath?: string | undefined;
constructor(message: string, resourcePath?: string | undefined);
}
export declare class ValidationError extends KnowhubError {
field?: string | undefined;
constructor(message: string, field?: string | undefined);
}
export declare class FileOperationError extends KnowhubError {
filePath?: string | undefined;
operation?: string | undefined;
constructor(message: string, filePath?: string | undefined, operation?: string | undefined);
}
export declare function formatError(error: unknown): string;
export declare function handleNodeError(error: unknown, path: string, operation: string): never;
//# sourceMappingURL=errors.d.ts.map