instance method discard_on_handler

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

discard_on_handler(report, block)

No documentation comment.

Parameters

report req
block req
Source
# File activejob/lib/active_job/exceptions.rb, line 155
        def discard_on_handler(report, block)
          proc do |error|
            instrument :discard, error: error do
              ActiveSupport.error_reporter.report(error, source: "application.active_job") if report
              block.call(self, error) if block
              run_after_discard_procs(error)
            end
          end
        end

Defined in activejob/lib/active_job/exceptions.rb line 155 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveJob::Exceptions::ClassMethods

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close