Exception: Clearbooks::NoSolutionError
- Inherits:
-
ClearbooksError
- Object
- StandardError
- ClearbooksError
- Clearbooks::NoSolutionError
- Defined in:
- lib/clearbooks/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 ClearbooksError
Constructor Details
#initialize(demands) ⇒ NoSolutionError
Returns a new instance of NoSolutionError.
80 81 82 |
# File 'lib/clearbooks/error/errors.rb', line 80 def initialize(demands) @demands = demands end |
Instance Attribute Details
#demands ⇒ Object (readonly)
Returns the value of attribute demands.
77 78 79 |
# File 'lib/clearbooks/error/errors.rb', line 77 def demands @demands end |
Instance Method Details
#to_s ⇒ Object
84 85 86 |
# File 'lib/clearbooks/error/errors.rb', line 84 def to_s "Unable to find a solution for demands: #{demands.join(', ')}" end |