Exception: DepSelector::Exceptions::InvalidSolutionConstraints

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/dep_selector/exceptions.rb

Overview

This exception is thrown during Selector#find_solution if any of the solution constraints make finding solution impossible. The two cases are if a solution constraint references a package that doesn’t exist or if the constraint on an extant package matches no versions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(non_existent_packages, constrained_to_no_versions) ⇒ InvalidSolutionConstraints

Returns a new instance of InvalidSolutionConstraints.



62
63
64
65
# File 'lib/dep_selector/exceptions.rb', line 62

def initialize(non_existent_packages, constrained_to_no_versions)
  @non_existent_packages = non_existent_packages
  @constrained_to_no_versions = constrained_to_no_versions
end

Instance Attribute Details

#constrained_to_no_versionsObject (readonly)

Returns the value of attribute constrained_to_no_versions.



61
62
63
# File 'lib/dep_selector/exceptions.rb', line 61

def constrained_to_no_versions
  @constrained_to_no_versions
end

#non_existent_packagesObject (readonly)

Returns the value of attribute non_existent_packages.



61
62
63
# File 'lib/dep_selector/exceptions.rb', line 61

def non_existent_packages
  @non_existent_packages
end