UNPKG

browser-debugger-cli

Version:

DevTools telemetry in your terminal. For humans and agents. Direct WebSocket to Chrome's debugging port.

65 lines 1.58 kB
/** * Daemon layer error classes. * * Provides structured error handling for daemon, worker, and configuration errors. */ /** * Base class for all daemon-related errors. */ export declare class DaemonError extends Error { readonly exitCode: number; readonly code?: string; constructor(message: string, code?: string, exitCode?: number); } /** * Worker process error. * * Thrown when worker process fails to start, crashes, or has runtime issues. * * @example * ```typescript * throw new WorkerError( * 'Worker failed to start within timeout', * 'WORKER_START_TIMEOUT' * ); * ``` */ export declare class WorkerError extends DaemonError { readonly name = "WorkerError"; constructor(message: string, code?: string); } /** * Configuration error. * * Thrown when worker configuration is invalid or missing required fields. * * @example * ```typescript * throw new ConfigError( * 'Missing required field: url', * 'MISSING_CONFIG_FIELD' * ); * ``` */ export declare class ConfigError extends DaemonError { readonly name = "ConfigError"; constructor(message: string, code?: string); } /** * Daemon startup error. * * Thrown when daemon fails to start (port conflicts, permissions, etc.). * * @example * ```typescript * throw new DaemonStartupError( * 'Failed to bind to socket', * 'SOCKET_BIND_FAILED' * ); * ``` */ export declare class DaemonStartupError extends DaemonError { readonly name = "DaemonStartupError"; constructor(message: string, code?: string); } //# sourceMappingURL=errors.d.ts.map