Sha256: 0a4dd7cecdfd0f98fc555aadb0996b4008bafa032e015cdce25eb31b11b99c69

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

require 'faraday'

module FaradayMiddleware
  # Exception thrown when the maximum amount of requests is
  # exceeded.
  class RedirectLimitReached < Faraday::ClientError
    attr_reader :response

    def initialize(response)
      super "too many redirects; last one to: #{response['location']}"
      @response = response
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
faraday_middleware-1.2.1 lib/faraday_middleware/redirect_limit_reached.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/faraday_middleware-1.2.0/lib/faraday_middleware/redirect_limit_reached.rb
faraday_middleware-1.2.0 lib/faraday_middleware/redirect_limit_reached.rb
faraday_middleware-1.1.0 lib/faraday_middleware/redirect_limit_reached.rb
faraday_middleware-1.0.0 lib/faraday_middleware/redirect_limit_reached.rb
faraday_middleware-1.0.0.rc1 lib/faraday_middleware/redirect_limit_reached.rb