Sha256: fef62bbab892614bfd06a54f176cabad2525597d8e59eb6a74c2fe2de4f9e018

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

module Raygun
  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
raygun4ruby-0.0.6 lib/raygun/rack_exception_interceptor.rb
raygun4ruby-0.0.5 lib/raygun/rack_exception_interceptor.rb
raygun4ruby-0.0.4 lib/raygun/rack_exception_interceptor.rb
raygun4ruby-0.0.3 lib/raygun/rack_exception_interceptor.rb