Exception: EC2::Platform::Base::Pipeline::ExecutionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ec2/platform/base/pipeline.rb

Overview


Instance Method Summary collapse

Constructor Details

#initialize(pipeline = nil, stage = nil, message = nil) ⇒ ExecutionError

Returns a new instance of ExecutionError.



26
27
28
29
30
31
32
33
# File 'lib/ec2/platform/base/pipeline.rb', line 26

def initialize(pipeline=nil, stage=nil, message=nil)
  word = 'Execution failed'
  word << ", pipeline: #{pipeline}" unless pipeline.nil?
  word << ", stage: #{stage}" unless stage.nil?
  word << ', mesage:' + message.to_s unless message.nil?
  word << '.'
  super word
end