Exception: SidekiqUniqueJobs::InvalidWorker
- Inherits:
-
UniqueJobsError
- Object
- RuntimeError
- UniqueJobsError
- SidekiqUniqueJobs::InvalidWorker
- Defined in:
- lib/sidekiq_unique_jobs/exceptions.rb
Overview
Raised when a workers configuration is invalid
Instance Method Summary collapse
-
#initialize(lock_config) ⇒ InvalidWorker
constructor
A new instance of InvalidWorker.
Constructor Details
#initialize(lock_config) ⇒ InvalidWorker
Returns a new instance of InvalidWorker.
61 62 63 64 65 66 |
# File 'lib/sidekiq_unique_jobs/exceptions.rb', line 61 def initialize(lock_config) super(<<~FAILURE_MESSAGE) Expected #{lock_config.worker} to have valid sidekiq options but found the following problems: #{lock_config.errors_as_string} FAILURE_MESSAGE end |