Sha256: 642838d369e9d1684eff7dc086a5076f12bf8f57e2b2a29904836f9c5bd15a45

Contents?: true

Size: 369 Bytes

Versions: 31

Compression:

Stored size: 369 Bytes

Contents

##
# Raised when too many redirects are sent

class Mechanize::RedirectLimitReachedError < Mechanize::Error

  attr_reader :page
  attr_reader :redirects
  attr_reader :response_code

  def initialize page, redirects
    @page          = page
    @redirects     = redirects
    @response_code = page.code

    super "Redirect limit of #{redirects} reached"
  end

end

Version data entries

31 entries across 31 versions & 5 rubygems

Version Path
mechanize-2.7.7 lib/mechanize/redirect_limit_reached_error.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/redirect_limit_reached_error.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/redirect_limit_reached_error.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/redirect_limit_reached_error.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.7.6 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.7.5 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.7.4 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.7.3 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.7.2 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.7.1 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.7.0 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.6.0 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.5.1 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.5 lib/mechanize/redirect_limit_reached_error.rb
mechanize-2.4 lib/mechanize/redirect_limit_reached_error.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/redirect_limit_reached_error.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/redirect_limit_reached_error.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/redirect_limit_reached_error.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/redirect_limit_reached_error.rb