Sha256: a41369abac0a3a8d23e5b6c7c3a93541ee9a91cb14ba54c0498e9a44715225e8
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true module MultiBackgroundJob class Error < StandardError end class InvalidConfig < Error end class NotDefinedWorker < Error def initialize(worker_class) @worker_class = worker_class end def message format( "The %<worker>p is not defined and the MultiBackgroundJob is configured to work on strict mode.\n" + "it's highly recommended to include this worker class to the list of known workers.\n" + "Example: `MultiBackgroundJob.configure { |config| config.workers = { %<worker>p => {} } }`\n" + 'Another option is to set config.strict = false', worker: @worker_class, ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi-background-job-0.1.0 | lib/multi_background_job/errors.rb |