Exception: Hatchet::FailedRunError
- Defined in:
- lib/hatchet/exceptions.rb
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.
76 77 78 79 80 |
# File 'lib/hatchet/exceptions.rb', line 76 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.
73 74 75 |
# File 'lib/hatchet/exceptions.rb', line 73 def exceptions @exceptions end |