Sha256: cda2c976876eaeffa63d9fd3b82f052551d628fb6490beb3a852165ae6029eec

Contents?: true

Size: 338 Bytes

Versions: 22

Compression:

Stored size: 338 Bytes

Contents

module Raygun
  module Middleware
    class RackExceptionInterceptor

      def initialize(app)
        @app = app
      end

      def call(env)
        response = @app.call(env)
      rescue Exception => exception
        Raygun.track_exception(exception, env) if Raygun.configured?
        raise exception
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
raygun4ruby-3.2.3 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.2.3.pre lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.2.1 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.2.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.1.1 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.1.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.0.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.7.1 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.7.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.6.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.5.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.4.1 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.4.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.3.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.2.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.1.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-2.0.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.5.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.4.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.3.0 lib/raygun/middleware/rack_exception_interceptor.rb