Exception: Hatchet::FailedRunError

Inherits:
Error
  • Object
show all
Defined in:
lib/hatchet/exceptions.rb

Overview

Raised when a workflow run fails with one or more task errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exceptions) ⇒ FailedRunError

Returns a new instance of FailedRunError.

Parameters:



76
77
78
79
80
# File 'lib/hatchet/exceptions.rb', line 76

def initialize(exceptions)
  @exceptions = exceptions
  messages = exceptions.map(&:message).join("; ")
  super("Workflow run failed with #{exceptions.length} error(s): #{messages}")
end

Instance Attribute Details

#exceptionsArray<TaskRunError> (readonly)

Returns The individual task run errors.

Returns:



73
74
75
# File 'lib/hatchet/exceptions.rb', line 73

def exceptions
  @exceptions
end