Exception: DepSelector::Exceptions::NoSolutionExists
- Inherits:
-
StandardError
- Object
- StandardError
- DepSelector::Exceptions::NoSolutionExists
- Defined in:
- lib/dep_selector/exceptions.rb
Overview
This exception is what the client of dep_selector should catch. It contains the solution constraint that introduces unsatisfiability, as well as the set of packages that are required to be disabled due to
Instance Attribute Summary collapse
-
#disabled_most_constrained_packages ⇒ Object
readonly
Returns the value of attribute disabled_most_constrained_packages.
-
#disabled_non_existent_packages ⇒ Object
readonly
Returns the value of attribute disabled_non_existent_packages.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#unsatisfiable_solution_constraint ⇒ Object
readonly
Returns the value of attribute unsatisfiable_solution_constraint.
Instance Method Summary collapse
-
#initialize(message, unsatisfiable_solution_constraint, disabled_non_existent_packages = [], disabled_most_constrained_packages = []) ⇒ NoSolutionExists
constructor
A new instance of NoSolutionExists.
Constructor Details
#initialize(message, unsatisfiable_solution_constraint, disabled_non_existent_packages = [], disabled_most_constrained_packages = []) ⇒ NoSolutionExists
Returns a new instance of NoSolutionExists.
31 32 33 34 35 36 37 38 |
# File 'lib/dep_selector/exceptions.rb', line 31 def initialize(, unsatisfiable_solution_constraint, disabled_non_existent_packages = [], disabled_most_constrained_packages = []) @message = @unsatisfiable_solution_constraint = unsatisfiable_solution_constraint @disabled_non_existent_packages = disabled_non_existent_packages @disabled_most_constrained_packages = disabled_most_constrained_packages end |
Instance Attribute Details
#disabled_most_constrained_packages ⇒ Object (readonly)
Returns the value of attribute disabled_most_constrained_packages.
28 29 30 |
# File 'lib/dep_selector/exceptions.rb', line 28 def disabled_most_constrained_packages @disabled_most_constrained_packages end |
#disabled_non_existent_packages ⇒ Object (readonly)
Returns the value of attribute disabled_non_existent_packages.
28 29 30 |
# File 'lib/dep_selector/exceptions.rb', line 28 def disabled_non_existent_packages @disabled_non_existent_packages end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
28 29 30 |
# File 'lib/dep_selector/exceptions.rb', line 28 def @message end |
#unsatisfiable_solution_constraint ⇒ Object (readonly)
Returns the value of attribute unsatisfiable_solution_constraint.
28 29 30 |
# File 'lib/dep_selector/exceptions.rb', line 28 def unsatisfiable_solution_constraint @unsatisfiable_solution_constraint end |