Exception: DepSelector::Exceptions::NoSolutionExists

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message, unsatisfiable_solution_constraint,
               disabled_non_existent_packages = [],
               disabled_most_constrained_packages = [])
  @message = 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_packagesObject (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_packagesObject (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

#messageObject (readonly)

Returns the value of attribute message.



28
29
30
# File 'lib/dep_selector/exceptions.rb', line 28

def message
  @message
end

#unsatisfiable_solution_constraintObject (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