Exception: Dependabot::PrivateSourceAuthenticationFailure

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

Overview

Source 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(source) ⇒ PrivateSourceAuthenticationFailure

Returns a new instance of PrivateSourceAuthenticationFailure.



466
467
468
469
470
471
472
# File 'lib/dependabot/errors.rb', line 466

def initialize(source)
  @source = T.let(sanitize_source(T.must(source)), String)
  msg = "The following source could not be reached as it requires " \
        "authentication (and any provided details were invalid or lacked " \
        "the required permissions): #{@source}"
  super(msg)
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



463
464
465
# File 'lib/dependabot/errors.rb', line 463

def source
  @source
end