Sha256: 5832ef7dd8405a38e5e5d3d792de751f1fc780b8cf9c0ebc0f5d94f4fdcb4385

Contents?: true

Size: 315 Bytes

Versions: 14

Compression:

Stored size: 315 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)
        raise exception
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
raygun4ruby-1.1.12 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.11 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.9 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.8 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.6 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.5 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.4 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.3 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.2 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.1 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.1.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.0.1 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-1.0.0 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-0.0.9 lib/raygun/middleware/rack_exception_interceptor.rb