UNPKG

@oxog/port-finder

Version:

Zero-dependency port finder for Node.js applications with plugin support

17 lines (16 loc) 484 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PortFinderError = void 0; /** * Custom error class for port finder operations */ class PortFinderError extends Error { constructor(message, code, details) { super(message); this.name = 'PortFinderError'; this.code = code; this.details = details; Object.setPrototypeOf(this, PortFinderError.prototype); } } exports.PortFinderError = PortFinderError;