UNPKG

@oxog/port-finder

Version:

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

13 lines (12 loc) 337 B
/** * Custom error class for port finder operations */ export class PortFinderError extends Error { constructor(message, code, details) { super(message); this.name = 'PortFinderError'; this.code = code; this.details = details; Object.setPrototypeOf(this, PortFinderError.prototype); } }