Exception: Fox::NoSolutionError
- Defined in:
- lib/fox/error/errors.rb
Instance Attribute Summary collapse
-
#demands ⇒ Object
readonly
Returns the value of attribute demands.
Instance Method Summary collapse
-
#initialize(demands) ⇒ NoSolutionError
constructor
A new instance of NoSolutionError.
- #to_s ⇒ Object
Methods inherited from FoxError
Constructor Details
#initialize(demands) ⇒ NoSolutionError
Returns a new instance of NoSolutionError.
79 80 81 |
# File 'lib/fox/error/errors.rb', line 79 def initialize(demands) @demands = demands end |
Instance Attribute Details
#demands ⇒ Object (readonly)
Returns the value of attribute demands.
76 77 78 |
# File 'lib/fox/error/errors.rb', line 76 def demands @demands end |
Instance Method Details
#to_s ⇒ Object
83 84 85 |
# File 'lib/fox/error/errors.rb', line 83 def to_s "Unable to find a solution for demands: #{demands.join(', ')}" end |