Sha256: 96620c167036ffb318be6bfdfdc6249b7ed8a1e4b99cca962e545bcbad0a7c3a

Contents?: true

Size: 247 Bytes

Versions: 35

Compression:

Stored size: 247 Bytes

Contents

require 'faraday'

module TestTrack
  class ServerErrorMiddleware < Faraday::Response::Middleware
    def call(request_env)
      @app.call request_env
    rescue *SERVER_ERRORS => e
      raise UnrecoverableConnectivityError, e
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
test_track_rails_client-7.1.2 lib/test_track/server_error_middleware.rb
test_track_rails_client-7.1.1 lib/test_track/server_error_middleware.rb
test_track_rails_client-7.0.0 lib/test_track/server_error_middleware.rb
test_track_rails_client-6.0.0 lib/test_track/server_error_middleware.rb
test_track_rails_client-5.0.1 lib/test_track/server_error_middleware.rb
test_track_rails_client-5.0.0 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.2 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.1 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.rc3 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.rc2 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha35 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha34 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha33 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha32 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha31 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha30 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha29 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha28 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha27 lib/test_track/server_error_middleware.rb