Exception: Dependabot::ToolVersionNotSupported
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::ToolVersionNotSupported
- Defined in:
- lib/dependabot/errors.rb
Overview
File level errors #
Constant Summary
Constants inherited from DependabotError
DependabotError::BASIC_AUTH_REGEX, DependabotError::FURY_IO_PATH_REGEX
Instance Attribute Summary collapse
-
#detected_version ⇒ Object
readonly
Returns the value of attribute detected_version.
-
#supported_versions ⇒ Object
readonly
Returns the value of attribute supported_versions.
-
#tool_name ⇒ Object
readonly
Returns the value of attribute tool_name.
Instance Method Summary collapse
-
#initialize(tool_name, detected_version, supported_versions) ⇒ ToolVersionNotSupported
constructor
A new instance of ToolVersionNotSupported.
Constructor Details
#initialize(tool_name, detected_version, supported_versions) ⇒ ToolVersionNotSupported
Returns a new instance of ToolVersionNotSupported.
91 92 93 94 95 96 97 98 99 |
# File 'lib/dependabot/errors.rb', line 91 def initialize(tool_name, detected_version, supported_versions) @tool_name = tool_name @detected_version = detected_version @supported_versions = supported_versions msg = "Dependabot detected the following #{tool_name} requirement for your project: '#{detected_version}'." \ "\n\nCurrently, the following #{tool_name} versions are supported in Dependabot: #{supported_versions}." super(msg) end |
Instance Attribute Details
#detected_version ⇒ Object (readonly)
Returns the value of attribute detected_version.
89 90 91 |
# File 'lib/dependabot/errors.rb', line 89 def detected_version @detected_version end |
#supported_versions ⇒ Object (readonly)
Returns the value of attribute supported_versions.
89 90 91 |
# File 'lib/dependabot/errors.rb', line 89 def supported_versions @supported_versions end |
#tool_name ⇒ Object (readonly)
Returns the value of attribute tool_name.
89 90 91 |
# File 'lib/dependabot/errors.rb', line 89 def tool_name @tool_name end |