MCPcopy Create free account
hub / github.com/apify/impit / constructor

Method constructor

impit-node/errors.js:20–24  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

18class ProxyError extends TransportError {}
19class ProxyTunnelError extends ProxyError {
20 constructor(msg) {
21 super(msg);
22 const match = msg.match(/with status code (\d+)/);
23 this.status = match ? Number(match[1]) : undefined;
24 }
25}
26class ProxyAuthRequired extends ProxyError {}
27class UnsupportedProtocol extends TransportError {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected