/** * Provider Error Classes * * Error classes for provider operations. All errors include the provider name * and operation for easier debugging. * * @see s-9cl3 - Unified Workspace Provider Architecture specification */ /** * Base error class for all provider errors. * Includes provider name and operation for context. */ export declare class ProviderError extends Error { readonly provider: string; readonly operation: string; readonly cause?: Error | undefined; constructor(message: string, provider: string, operation: string, cause?: Error | undefined); } /** * Thrown when a workspace cannot be found. */ export declare class WorkspaceNotFoundError extends ProviderError { readonly workspaceId: string; constructor(provider: string, workspaceId: string); } /** * Thrown when workspace creation fails. */ export declare class WorkspaceCreationError extends ProviderError { constructor(provider: string, message: string, cause?: Error); } /** * Thrown when a workspace operation times out. */ export declare class WorkspaceTimeoutError extends ProviderError { readonly timeoutMs: number; constructor(provider: string, operation: string, timeoutMs: number); } /** * Thrown when a workspace is in an unexpected state for the operation. */ export declare class WorkspaceStateError extends ProviderError { readonly workspaceId: string; readonly currentState: string; readonly expectedStates: string[]; constructor(provider: string, operation: string, workspaceId: string, currentState: string, expectedStates: string[]); } /** * Thrown when authentication fails. */ export declare class AuthenticationError extends ProviderError { constructor(provider: string, message: string); } /** * Thrown when the user lacks permission for an operation. */ export declare class AuthorizationError extends ProviderError { constructor(provider: string, operation: string, message: string); } /** * Thrown when provider configuration is invalid or missing. */ export declare class ConfigurationError extends ProviderError { constructor(provider: string, message: string); } /** * Thrown when connection to the workspace fails. */ export declare class ConnectionError extends ProviderError { constructor(provider: string, operation: string, message: string, cause?: Error); } /** * Thrown when port forwarding fails. */ export declare class PortForwardingError extends ProviderError { readonly port: number; constructor(provider: string, port: number, message: string, cause?: Error); } /** * Thrown when command execution inside workspace fails. */ export declare class ExecutionError extends ProviderError { readonly command: string; readonly exitCode: number; readonly stderr?: string | undefined; constructor(provider: string, command: string, exitCode: number, stderr?: string | undefined); } //# sourceMappingURL=errors.d.ts.map