Exception: Dependabot::GitDependenciesNotReachable

Inherits:
DependabotError
  • Object
show all
Defined in:
lib/dependabot/errors.rb

Overview

Dependency level errors #

Constant Summary

Constants inherited from DependabotError

DependabotError::BASIC_AUTH_REGEX, DependabotError::FURY_IO_PATH_REGEX

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*dependency_urls) ⇒ GitDependenciesNotReachable

Returns a new instance of GitDependenciesNotReachable.



196
197
198
199
200
201
202
203
# File 'lib/dependabot/errors.rb', line 196

def initialize(*dependency_urls)
  @dependency_urls =
    dependency_urls.flatten.map { |uri| filter_sensitive_data(uri) }

  msg = "The following git URLs could not be retrieved: " \
        "#{@dependency_urls.join(', ')}"
  super(msg)
end

Instance Attribute Details

#dependency_urlsObject (readonly)

Returns the value of attribute dependency_urls.



194
195
196
# File 'lib/dependabot/errors.rb', line 194

def dependency_urls
  @dependency_urls
end