(message, socket)
| 254 | const kSocketError = Symbol.for('undici.error.UND_ERR_SOCKET') |
| 255 | class SocketError extends UndiciError { |
| 256 | constructor (message, socket) { |
| 257 | super(message) |
| 258 | this.name = 'SocketError' |
| 259 | this.message = message || 'Socket error' |
| 260 | this.code = 'UND_ERR_SOCKET' |
| 261 | this.socket = socket |
| 262 | } |
| 263 | |
| 264 | static [Symbol.hasInstance] (instance) { |
| 265 | return instance && instance[kSocketError] === true |
nothing calls this directly
no outgoing calls
no test coverage detected