class Trackets::Middleware::RackExceptionHandler

Public Class Methods

new(app) click to toggle source
# File lib/trackets/middleware/rack_exception_handler.rb, line 23
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/trackets/middleware/rack_exception_handler.rb, line 27
def call(env)
  response = @app.call(env)
rescue Exception => exception
  Trackets.notify(exception, env)
  raise
end