Exception: Hatchet::TaskRunError
- Defined in:
- lib/hatchet/exceptions.rb,
sig/hatchet/exceptions.rbs
Overview
Represents an error from a failed task run
Instance Attribute Summary collapse
-
#exc ⇒ String
readonly
The error message from the task.
-
#task_run_external_id ⇒ String
readonly
The external ID of the failed task run.
Instance Method Summary collapse
-
#initialize(message, task_run_external_id: nil) ⇒ TaskRunError
constructor
A new instance of TaskRunError.
Constructor Details
#initialize(message, task_run_external_id: nil) ⇒ TaskRunError
Returns a new instance of TaskRunError.
65 66 67 68 69 |
# File 'lib/hatchet/exceptions.rb', line 65 def initialize(, task_run_external_id: nil) @task_run_external_id = task_run_external_id @exc = super() end |
Instance Attribute Details
#exc ⇒ String (readonly)
Returns The error message from the task.
61 62 63 |
# File 'lib/hatchet/exceptions.rb', line 61 def exc @exc end |
#task_run_external_id ⇒ String (readonly)
Returns The external ID of the failed task run.
58 59 60 |
# File 'lib/hatchet/exceptions.rb', line 58 def task_run_external_id @task_run_external_id end |