Exception: Hatchet::TaskRunError
- Defined in:
- lib/hatchet/exceptions.rb
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.
37 38 39 40 41 |
# File 'lib/hatchet/exceptions.rb', line 37 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.
33 34 35 |
# File 'lib/hatchet/exceptions.rb', line 33 def exc @exc end |
#task_run_external_id ⇒ String (readonly)
Returns The external ID of the failed task run.
30 31 32 |
# File 'lib/hatchet/exceptions.rb', line 30 def task_run_external_id @task_run_external_id end |