@dharshansr/gitgenius
Version:
AI-powered commit message generator with enhanced features
19 lines • 964 B
TypeScript
export declare class GitGeniusError extends Error {
code: string;
category: 'git' | 'ai' | 'config' | 'network' | 'user';
suggestions: string[];
constructor(message: string, code: string, category: 'git' | 'ai' | 'config' | 'network' | 'user', suggestions?: string[]);
}
export declare class ErrorHandler {
static handle(error: unknown): void;
private static handleGitGeniusError;
private static handleGenericError;
private static handleUnknownError;
private static showCommonSolutions;
static gitError(message: string, suggestions?: string[]): GitGeniusError;
static aiError(message: string, suggestions?: string[]): GitGeniusError;
static configError(message: string, suggestions?: string[]): GitGeniusError;
static networkError(message: string, suggestions?: string[]): GitGeniusError;
static userError(message: string, suggestions?: string[]): GitGeniusError;
}
//# sourceMappingURL=ErrorHandler.d.ts.map