Exception: Dependabot::PrivateSourceAuthenticationFailure
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::PrivateSourceAuthenticationFailure
- 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
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ PrivateSourceAuthenticationFailure
constructor
A new instance of PrivateSourceAuthenticationFailure.
Constructor Details
#initialize(source) ⇒ PrivateSourceAuthenticationFailure
Returns a new instance of PrivateSourceAuthenticationFailure.
149 150 151 152 153 154 155 |
# File 'lib/dependabot/errors.rb', line 149 def initialize(source) @source = sanitize_source(source) 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
#source ⇒ Object (readonly)
Returns the value of attribute source.
147 148 149 |
# File 'lib/dependabot/errors.rb', line 147 def source @source end |