Exception: Berkshelf::NoSolutionError
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::NoSolutionError
- Defined in:
- lib/berkshelf/errors.rb
Instance Attribute Summary collapse
-
#demands ⇒ Object
readonly
Returns the value of attribute demands.
Instance Method Summary collapse
-
#initialize(demands, original_exception) ⇒ NoSolutionError
constructor
A new instance of NoSolutionError.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(demands, original_exception) ⇒ NoSolutionError
Returns a new instance of NoSolutionError.
72 73 74 75 |
# File 'lib/berkshelf/errors.rb', line 72 def initialize(demands, original_exception) @demands = demands @original_exception = original_exception end |
Instance Attribute Details
#demands ⇒ Object (readonly)
Returns the value of attribute demands.
69 70 71 |
# File 'lib/berkshelf/errors.rb', line 69 def demands @demands end |
Instance Method Details
#to_s ⇒ Object
77 78 79 80 |
# File 'lib/berkshelf/errors.rb', line 77 def to_s @original_exception.to_s + "Unable to find a solution for demands: #{demands.join(', ')}" end |