MCPcopy Create free account
hub / github.com/nodejs/undici / constructor

Method constructor

lib/core/errors.js:408–414  ·  view source on GitHub ↗
(cause, message, options = {})

Source from the content-addressed store, hash-verified

406const kProxyConnectionError = Symbol.for('undici.error.UND_ERR_PRX_CONN')
407class ProxyConnectionError extends UndiciError {
408 constructor (cause, message, options = {}) {
409 super(message, { cause, ...options })
410 this.name = 'ProxyConnectionError'
411 this.message = message || 'Proxy Connection failed'
412 this.code = 'UND_ERR_PRX_CONN'
413 this.cause = cause
414 }
415
416 static [Symbol.hasInstance] (instance) {
417 return instance && instance[kProxyConnectionError] === true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected