UNPKG

pgit-cli

Version:

Private file tracking with dual git repositories

61 lines 1.65 kB
/** * Recovery suggestion interface */ export interface RecoverySuggestion { action: string; command?: string; description: string; automated?: boolean; } /** * Error context interface */ export interface ErrorContext { command?: string; workingDir?: string; args?: string[]; timestamp?: Date; environment?: Record<string, string>; } /** * Enhanced error handler with recovery suggestions and user guidance */ export declare class EnhancedErrorHandler { /** * Handle error with enhanced output and recovery suggestions */ static handleError(error: unknown, context?: ErrorContext): void; /** * Handle BaseError instances with specific recovery suggestions */ private static handleBaseError; /** * Handle generic Error instances */ private static handleGenericError; /** * Handle unknown error types */ private static handleUnknownError; /** * Get recovery suggestions based on error type and code */ private static getRecoverySuggestions; /** * Get generic recovery suggestions for non-BaseError instances */ private static getGenericRecoverySuggestions; /** * Display general troubleshooting tips */ private static displayTroubleshootingTips; /** * Create error context from command information */ static createContext(command?: string, args?: string[], workingDir?: string): ErrorContext; /** * Format error for logging */ static formatForLog(error: unknown, context?: ErrorContext): string; } //# sourceMappingURL=enhanced.error-handler.d.ts.map