/** * E2E Test Runner - Custom Error Classes */ /** * Base error class for E2E runner errors */ export declare class E2ERunnerError extends Error { readonly code: string; readonly hint?: string; constructor(message: string, code: string, hint?: string); } /** * Configuration-related errors */ export declare class ConfigurationError extends E2ERunnerError { constructor(message: string, hint?: string); } /** * Test validation errors */ export declare class ValidationError extends E2ERunnerError { readonly filePath?: string; readonly errors: SchemaError[]; constructor(message: string, errors?: SchemaError[], filePath?: string); } export interface SchemaError { path: string; message: string; keyword?: string; } /** * Adapter connection errors */ export declare class ConnectionError extends E2ERunnerError { readonly adapter: string; constructor(adapter: string, message: string, hint?: string); } /** * Test execution errors */ export declare class ExecutionError extends E2ERunnerError { readonly testName?: string; readonly phase?: string; readonly stepId?: string; constructor(message: string, options?: { testName?: string; phase?: string; stepId?: string; }); } /** * Assertion errors */ export declare class AssertionError extends E2ERunnerError { readonly expected: unknown; readonly actual: unknown; readonly path?: string; readonly operator?: string; constructor(message: string, options?: { expected?: unknown; actual?: unknown; path?: string; operator?: string; }); /** * Format the assertion error with details */ toDetailedString(): string; } /** * Timeout errors */ export declare class TimeoutError extends E2ERunnerError { readonly timeoutMs: number; readonly operation: string; constructor(operation: string, timeoutMs: number); } /** * Variable interpolation errors */ export declare class InterpolationError extends E2ERunnerError { readonly expression: string; constructor(message: string, expression: string); } /** * Test loader errors */ export declare class LoaderError extends E2ERunnerError { readonly filePath: string; constructor(message: string, filePath: string, hint?: string); } /** * Adapter execution errors */ export declare class AdapterError extends E2ERunnerError { readonly adapter: string; readonly action: string; constructor(adapter: string, action: string, message: string); } /** * Check if an error is an E2E runner error */ export declare function isE2ERunnerError(error: unknown): error is E2ERunnerError; /** * Wrap an unknown error in an E2ERunnerError */ export declare function wrapError(error: unknown, context?: string): E2ERunnerError; //# sourceMappingURL=errors.d.ts.map