Sha256: 1f94301a7c36bd46d7058410611ec12f34ee60a10d837fc008e64a765f602208

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

module Raygun
  module Middleware
    class RackExceptionInterceptor

      def initialize(app)
        @app = app
      end

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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
raygun4ruby-4.0.2 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-4.0.1 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-4.0.0.pre lib/raygun/middleware/rack_exception_interceptor.rb