Exception: Dependabot::PrivateSourceBadResponse

Inherits:
DependabotError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/errors.rb

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(source, error_message = nil) ⇒ PrivateSourceBadResponse

Returns a new instance of PrivateSourceBadResponse.



744
745
746
747
748
# File 'lib/dependabot/errors.rb', line 744

def initialize(source, error_message = nil)
  @source = T.let(sanitize_source(T.must(source)), String)
  msg = error_message ? sanitize_source(error_message) : "Bad response error while accessing source: #{@source}"
  super(msg)
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



741
742
743
# File 'lib/dependabot/errors.rb', line 741

def source
  @source
end