/** * Auto-Error Handler * * Automatically handles errors that occur during Feature execution. * Simplified Express-style error handling. * * Key features: * 1. Error catching: Catches all errors that occur during Step execution * 2. HTTP response: Converts errors to appropriate HTTP responses * 3. Step info: Includes step information for debugging */ /// import { ServerResponse } from 'http'; /** * Auto-Error Handler class */ export declare class AutoErrorHandler { /** * Handle error and send HTTP response * * @param error - Error that occurred * @param res - HTTP Response object */ static handle(error: Error, res: ServerResponse): void; /** * Send HTTP error response * * Express-style: statusCode from error or 500 * * @param error - Error that occurred * @param res - HTTP Response object */ private static sendErrorResponse; /** * Log error * * @param error - Error that occurred */ private static logError; } //# sourceMappingURL=auto-error-handler.d.ts.map