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-4.0.0.alpha26 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha25 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha24 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha23 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha22 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha21 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha20 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha19 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha18 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha17 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha16 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha15 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha14 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha13 lib/test_track/server_error_middleware.rb
test_track_rails_client-4.0.0.alpha12 lib/test_track/server_error_middleware.rb