Exception: MaintenanceTasks::Runner::EnqueuingError
- Inherits:
-
StandardError
- Object
- StandardError
- MaintenanceTasks::Runner::EnqueuingError
- Defined in:
- app/models/maintenance_tasks/runner.rb
Overview
Exception raised when a Task Job couldn’t be enqueued.
Instance Attribute Summary collapse
-
#run ⇒ Object
readonly
Returns the value of attribute run.
Instance Method Summary collapse
-
#initialize(run) ⇒ EnqueuingError
constructor
Initializes a Enqueuing Error.
Constructor Details
#initialize(run) ⇒ EnqueuingError
Initializes a Enqueuing Error.
14 15 16 17 |
# File 'app/models/maintenance_tasks/runner.rb', line 14 def initialize(run) super("The job to perform #{run.task_name} could not be enqueued") @run = run end |
Instance Attribute Details
#run ⇒ Object (readonly)
Returns the value of attribute run.
19 20 21 |
# File 'app/models/maintenance_tasks/runner.rb', line 19 def run @run end |