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.
22 23 24 25 |
# File 'app/models/maintenance_tasks/runner.rb', line 22 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.
27 28 29 |
# File 'app/models/maintenance_tasks/runner.rb', line 27 def run @run end |