class Raygun::Middleware::RackExceptionInterceptor

Public Class Methods

new(app) click to toggle source
# File lib/raygun/middleware/rack_exception_interceptor.rb, line 5
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/raygun/middleware/rack_exception_interceptor.rb, line 9
def call(env)
  @app.call(env)
rescue Exception => exception
  Raygun.track_exception(exception, env) if Raygun.configured?
  raise exception
end