Exception: Stemcell::IncompleteOperation
- Defined in:
- lib/stemcell/errors.rb
Instance Attribute Summary collapse
-
#all_instance_ids ⇒ Object
readonly
Returns the value of attribute all_instance_ids.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(operation, all_instance_ids, errors) ⇒ IncompleteOperation
constructor
A new instance of IncompleteOperation.
- #message ⇒ Object
Constructor Details
#initialize(operation, all_instance_ids, errors) ⇒ IncompleteOperation
Returns a new instance of IncompleteOperation.
29 30 31 32 33 34 |
# File 'lib/stemcell/errors.rb', line 29 def initialize(operation, all_instance_ids, errors) super() @operation = operation @all_instance_ids = all_instance_ids @errors = errors end |
Instance Attribute Details
#all_instance_ids ⇒ Object (readonly)
Returns the value of attribute all_instance_ids.
28 29 30 |
# File 'lib/stemcell/errors.rb', line 28 def all_instance_ids @all_instance_ids end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
28 29 30 |
# File 'lib/stemcell/errors.rb', line 28 def errors @errors end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
28 29 30 |
# File 'lib/stemcell/errors.rb', line 28 def operation @operation end |
Instance Method Details
#message ⇒ Object
36 37 38 39 40 |
# File 'lib/stemcell/errors.rb', line 36 def "Incomplete operation '#{@operation}': " + "all_instance_ids=#{@all_instance_ids.join('|')}; " + "errors=" + (@errors.map { |k, v| "'#{k}' => '#{v}'"}.join('|')) end |