Exception: Hatchet::FailedRunError

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

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:



104
105
106
107
108
# File 'lib/hatchet/exceptions.rb', line 104

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:



101
102
103
# File 'lib/hatchet/exceptions.rb', line 101

def exceptions
  @exceptions
end