@pod-protocol/cli
Version:
Official CLI for the PoD Protocol
22 lines • 791 B
TypeScript
export interface ErrorContext {
command?: string;
args?: string[];
network?: string;
timestamp?: Date;
userId?: string;
}
export declare class EnhancedErrorHandler {
private context;
setContext(context: ErrorContext): void;
handleError(error: Error | any, context?: ErrorContext): void;
private handleVerboseError;
private handleUserFriendlyError;
private getFriendlyMessage;
private getSuggestions;
private logError;
handleValidationError(field: string, value: any, expected: string): void;
handleNetworkError(operation: string, network: string): void;
handleAgentError(agentName: string, operation: string): void;
}
export declare const errorHandler: EnhancedErrorHandler;
//# sourceMappingURL=enhanced-error-handler.d.ts.map