Sha256: 5e48e3334749853240a90dd73db7482ce61f7b9495cad62aa837d265d3386875

Contents?: true

Size: 624 Bytes

Versions: 7

Compression:

Stored size: 624 Bytes

Contents

module VeryOwn
  class CustomException < StandardError; end
end

class RegularWorker
  include ::Sidekiq::Worker
end

class SingleExceptionWorker
  include ::Sidekiq::Worker
  sidekiq_options expected_failures: { ZeroDivisionError => nil }
end

class MultipleExceptionWorker
  include ::Sidekiq::Worker
  sidekiq_options expected_failures: { NotImplementedError => nil, VeryOwn::CustomException => nil }
end

class CustomizedWorker
  include ::Sidekiq::Worker
  sidekiq_options expected_failures: {
    NotImplementedError      => nil,
    VeryOwn::CustomException => [10, 20, 50],
    ZeroDivisionError        => 5
  }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sidekiq-expected_failures-0.3.0 test/test_workers.rb
sidekiq-expected_failures-0.2.5 test/test_workers.rb
sidekiq-expected_failures-0.2.4 test/test_workers.rb
sidekiq-expected_failures-0.2.3 test/test_workers.rb
sidekiq-expected_failures-0.2.2 test/test_workers.rb
sidekiq-expected_failures-0.2.1 test/test_workers.rb
sidekiq-expected_failures-0.2.0 test/test_workers.rb