Sha256: b108448e5a175ee9fcd334e9e3643645807f6c837e7f606ad77b5b7ce75a2d25

Contents?: true

Size: 907 Bytes

Versions: 24

Compression:

Stored size: 907 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  # Error raised when a Lua script fails to execute
  #
  # @author Mikael Henriksson <mikael@zoolutions.se>
  class Conflict < StandardError
    def initialize(item)
      super("Item with the key: #{item[UNIQUE_DIGEST_KEY]} is already scheduled or processing")
    end
  end

  # Error raised from {OnConflict::Raise}
  #
  # @author Mikael Henriksson <mikael@zoolutions.se>
  class ScriptError < StandardError
    # @param [Symbol] file_name the name of the lua script
    # @param [Redis::CommandError] source_exception exception to handle
    def initialize(file_name:, source_exception:)
      super("Problem compiling #{file_name}. Message: #{source_exception.message}")
    end
  end

  # Error raised from {OptionsWithFallback#lock_class}
  #
  # @author Mikael Henriksson <mikael@zoolutions.se>
  class UnknownLock < StandardError
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.25 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.24 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.23 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.22 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.21 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.20 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.16 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.19 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.13 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.12 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.11 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.10 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.9 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.8 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.7 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.6 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.5 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.4 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.3 lib/sidekiq_unique_jobs/exceptions.rb
sidekiq-unique-jobs-6.0.2 lib/sidekiq_unique_jobs/exceptions.rb