Sha256: d02d8d19638168415a3dae4f6ed0b74fb304c3a67bcd72d69d061c1bb24579b3

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

class Mechanize
  # Thrown when too many redirects are sent
  class RedirectLimitReachedError < Mechanize::Error
    attr_reader :page, :response_code, :redirects
    def initialize(page, redirects)
      @page           = page
      @redirects      = redirects
      @response_code  = page.code
    end

    def to_s
      "Maximum redirect limit (#{redirects}) reached"
    end
    alias :inspect :to_s
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
aai10-mechanize-2.0.1.0 lib/mechanize/redirect_limit_reached_error.rb
neocoin-mechanize-2.0.2 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.0.1 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.0 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.0.pre.2 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.0.pre.1 lib/mechanize/redirect_limit_reached_error.rb