Method: WorkerTools::Recorder#with_wrapper_recorder
- Defined in:
- lib/worker_tools/recorder.rb
#with_wrapper_recorder(&block) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/worker_tools/recorder.rb', line 3 def with_wrapper_recorder(&block) block.yield # this time we do want to catch Exception to attempt to handle some of the # critical errors. # rubocop:disable Lint/RescueException rescue Exception => e # rubocop:enable Lint/RescueException record_fail(e) raise end |