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 (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(demands, original_exception) ⇒ NoSolutionError
Returns a new instance of NoSolutionError.
79 80 81 82 |
# File 'lib/berkshelf/errors.rb', line 79 def initialize(demands, original_exception) @demands = demands @original_exception = original_exception end |
Instance Attribute Details
#demands ⇒ Object (readonly)
Returns the value of attribute demands.
76 77 78 |
# File 'lib/berkshelf/errors.rb', line 76 def demands @demands end |
Instance Method Details
#to_s ⇒ Object Also known as: message
84 85 86 87 |
# File 'lib/berkshelf/errors.rb', line 84 def to_s @original_exception.to_s + "Unable to find a solution for demands: #{demands.join(", ")}" end |