Exception: Textus::Workflow::ParallelStepFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/workflow/runner.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#code

Instance Method Summary collapse

Methods inherited from Error

#details, #exit_code, #hint, #to_envelope

Constructor Details

#initialize(failures) ⇒ ParallelStepFailed

Returns a new instance of ParallelStepFailed.



6
7
8
9
10
# File 'lib/textus/workflow/runner.rb', line 6

def initialize(failures)
  @failures = failures
  msgs = failures.map { |f| "#{f[:step]}: #{f[:error]}" }.join("; ")
  super(:workflow_parallel_step_failed, "parallel step(s) failed: #{msgs}")
end

Instance Attribute Details

#failuresObject (readonly)

Returns the value of attribute failures.



4
5
6
# File 'lib/textus/workflow/runner.rb', line 4

def failures
  @failures
end