Class: Woodhouse::Middleware::AirbrakeExceptions

Inherits:
Woodhouse::Middleware show all
Defined in:
lib/woodhouse/middleware/airbrake_exceptions.rb

Instance Method Summary collapse

Methods inherited from Woodhouse::Middleware

#initialize

Constructor Details

This class inherits a constructor from Woodhouse::Middleware

Instance Method Details

#call(job, worker) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/woodhouse/middleware/airbrake_exceptions.rb', line 3

def call(job, worker)
  begin
    yield job, worker
  rescue => err
    Airbrake.notify(err)
    raise err
  end
end