Exception: Dependabot::PrivateSourceBadResponse
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::PrivateSourceBadResponse
- 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
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, error_message = nil) ⇒ PrivateSourceBadResponse
constructor
A new instance of PrivateSourceBadResponse.
Constructor Details
#initialize(source, error_message = nil) ⇒ PrivateSourceBadResponse
Returns a new instance of PrivateSourceBadResponse.
755 756 757 758 759 |
# File 'lib/dependabot/errors.rb', line 755 def initialize(source, = nil) @source = T.let(sanitize_source(T.must(source)), String) msg = ? sanitize_source() : "Bad response error while accessing source: #{@source}" super(msg) end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
752 753 754 |
# File 'lib/dependabot/errors.rb', line 752 def source @source end |