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

Method constructor

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

Source from the content-addressed store, hash-verified

387const kSecureProxyConnectionError = Symbol.for('undici.error.UND_ERR_PRX_TLS')
388class SecureProxyConnectionError extends UndiciError {
389 constructor (cause, message, options = {}) {
390 super(message, { cause, ...options })
391 this.name = 'SecureProxyConnectionError'
392 this.message = message || 'Secure Proxy Connection failed'
393 this.code = 'UND_ERR_PRX_TLS'
394 this.cause = cause
395 }
396
397 static [Symbol.hasInstance] (instance) {
398 return instance && instance[kSecureProxyConnectionError] === true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected