Sha256: 0800da1ad4c847135acc47a74a79e589442a66afdf12abf10c6c9cbd7300a343

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 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

3 entries across 3 versions & 1 rubygems

Version Path
raygun4ruby-3.2.6 lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.2.5.pre lib/raygun/middleware/rack_exception_interceptor.rb
raygun4ruby-3.2.4 lib/raygun/middleware/rack_exception_interceptor.rb