Exception: Dependabot::ToolVersionNotSupported

Inherits:
DependabotError 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(tool_name, detected_version, supported_versions) ⇒ ToolVersionNotSupported

Returns a new instance of ToolVersionNotSupported.



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

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_versionObject (readonly)

Returns the value of attribute detected_version.



455
456
457
# File 'lib/dependabot/errors.rb', line 455

def detected_version
  @detected_version
end

#supported_versionsObject (readonly)

Returns the value of attribute supported_versions.



458
459
460
# File 'lib/dependabot/errors.rb', line 458

def supported_versions
  @supported_versions
end

#tool_nameObject (readonly)

Returns the value of attribute tool_name.



452
453
454
# File 'lib/dependabot/errors.rb', line 452

def tool_name
  @tool_name
end