UNPKG

portfree

Version:

A cross-platform CLI tool for managing processes running on specific ports

23 lines 841 B
/** * Custom error class for network-related errors * Used when network operations fail or ports are unreachable */ export declare class NetworkError extends Error { readonly name = "NetworkError"; readonly code = "NETWORK_ERROR"; readonly port: number | null; readonly operation: string | null; /** * Create a new NetworkError * @param message - Error message describing the network issue * @param port - Port number related to the network error (optional) * @param operation - Network operation that failed (optional) */ constructor(message: string, port?: number | null, operation?: string | null); /** * Get user-friendly error message with suggestions * @returns Formatted error message */ getUserMessage(): string; } //# sourceMappingURL=network-error.d.ts.map