Exception: Hatchet::FailedRunError
- 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
-
#exceptions ⇒ Array<TaskRunError>
readonly
The individual task run errors.
Instance Method Summary collapse
-
#initialize(exceptions) ⇒ FailedRunError
constructor
A new instance of FailedRunError.
Constructor Details
#initialize(exceptions) ⇒ FailedRunError
Returns a new instance of FailedRunError.
104 105 106 107 108 |
# File 'lib/hatchet/exceptions.rb', line 104 def initialize(exceptions) @exceptions = exceptions = exceptions.map(&:message).join("; ") super("Workflow run failed with #{exceptions.length} error(s): #{}") end |
Instance Attribute Details
#exceptions ⇒ Array<TaskRunError> (readonly)
Returns The individual task run errors.
101 102 103 |
# File 'lib/hatchet/exceptions.rb', line 101 def exceptions @exceptions end |