Sha256: 32e16a4d3db14d70d42ca38b81501fe29bb1cf6715c477f10ba7bae6ad2bbca9

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

module Sentry
  module Rails
    class RescuedExceptionInterceptor
      def initialize(app)
        @app = app
      end

      def call(env)
        begin
          @app.call(env)
        rescue => e
          env["sentry.rescued_exception"] = e if Sentry.configuration.rails.report_rescued_exceptions
          raise e
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sentry-rails-4.1.3 lib/sentry/rails/rescued_exception_interceptor.rb
sentry-rails-4.1.2 lib/sentry/rails/rescued_exception_interceptor.rb