Class: SidekiqPublisher::ExceptionReporter::PublisherErrorSubscriber

Inherits:
ActiveSupport::Subscriber
  • Object
show all
Defined in:
lib/sidekiq_publisher/exception_reporter.rb

Instance Method Summary collapse

Instance Method Details

#error(event) ⇒ Object



8
9
10
# File 'lib/sidekiq_publisher/exception_reporter.rb', line 8

def error(event)
  SidekiqPublisher.exception_reporter&.call(event.payload[:exception_object])
end