function NetConnectNotAllowedError(host, path) {
  Error.call(this)

  this.name = 'NetConnectNotAllowedError'
  this.code = 'ENETUNREACH'
  this.message = `Nock: Disallowed net connect for "${host}${path}"`

  Error.captureStackTrace(this, this.constructor)
}
@name NetConnectNotAllowedError
@private
@desc Error trying to make a connection when disabled external access.
@class
@example
nock.disableNetConnect();
http.get('http://zombo.com');
// throw NetConnectNotAllowedError