Exception: Stemcell::IncompleteOperation

Inherits:
Error
  • Object
show all
Defined in:
lib/stemcell/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idsObject (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

#errorsObject (readonly)

Returns the value of attribute errors.



28
29
30
# File 'lib/stemcell/errors.rb', line 28

def errors
  @errors
end

#operationObject (readonly)

Returns the value of attribute operation.



28
29
30
# File 'lib/stemcell/errors.rb', line 28

def operation
  @operation
end

Instance Method Details

#messageObject



36
37
38
39
40
# File 'lib/stemcell/errors.rb', line 36

def message
  "Incomplete operation '#{@operation}': " +
  "all_instance_ids=#{@all_instance_ids.join('|')}; " +
  "errors=" + (@errors.map { |k, v| "'#{k}' => '#{v}'"}.join('|'))
end