Exception: DepSelector::Exceptions::InvalidSolutionConstraints
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- DepSelector::Exceptions::InvalidSolutionConstraints
- 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
-
#constrained_to_no_versions ⇒ Object
readonly
Returns the value of attribute constrained_to_no_versions.
-
#non_existent_packages ⇒ Object
readonly
Returns the value of attribute non_existent_packages.
Instance Method Summary collapse
-
#initialize(non_existent_packages, constrained_to_no_versions) ⇒ InvalidSolutionConstraints
constructor
A new instance of InvalidSolutionConstraints.
Constructor Details
#initialize(non_existent_packages, constrained_to_no_versions) ⇒ InvalidSolutionConstraints
Returns a new instance of InvalidSolutionConstraints.
57 58 59 60 |
# File 'lib/dep_selector/exceptions.rb', line 57 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_versions ⇒ Object (readonly)
Returns the value of attribute constrained_to_no_versions.
56 57 58 |
# File 'lib/dep_selector/exceptions.rb', line 56 def constrained_to_no_versions @constrained_to_no_versions end |
#non_existent_packages ⇒ Object (readonly)
Returns the value of attribute non_existent_packages.
56 57 58 |
# File 'lib/dep_selector/exceptions.rb', line 56 def non_existent_packages @non_existent_packages end |