Exception: SidekiqUniqueJobs::ScriptError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sidekiq_unique_jobs/exceptions.rb

Overview

Error raised from OnConflict::Raise

Author:

Instance Method Summary collapse

Constructor Details

#initialize(file_name:, source_exception:) ⇒ ScriptError

Returns a new instance of ScriptError.

Parameters:

  • file_name (Symbol)

    the name of the lua script

  • source_exception (Redis::CommandError)

    exception to handle



19
20
21
# File 'lib/sidekiq_unique_jobs/exceptions.rb', line 19

def initialize(file_name:, source_exception:)
  super("Problem compiling #{file_name}. Message: #{source_exception.message}")
end