Exception: Hatchet::TaskRunError

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

Overview

Represents an error from a failed task run

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, task_run_external_id: nil) ⇒ TaskRunError



65
66
67
68
69
# File 'lib/hatchet/exceptions.rb', line 65

def initialize(message, task_run_external_id: nil)
  @task_run_external_id = task_run_external_id
  @exc = message
  super(message)
end

Instance Attribute Details

#excString (readonly)



61
62
63
# File 'lib/hatchet/exceptions.rb', line 61

def exc
  @exc
end

#task_run_external_idString (readonly)



58
59
60
# File 'lib/hatchet/exceptions.rb', line 58

def task_run_external_id
  @task_run_external_id
end