Parent

Methods

Class Index [+]

Quicksearch

Mechanize::ResponseCodeError

Synopsis

This error is thrown when Mechanize encounters a response code it does not know how to handle. Currently, this exception will be thrown if Mechanize encounters response codes other than 200, 301, or 302. Any other response code is up to the user to handle.

Attributes

response_code[R]
page[R]

Public Class Methods

new(page) click to toggle source
    # File lib/mechanize/response_code_error.rb, line 11
11:     def initialize(page)
12:       @page          = page
13:       @response_code = page.code
14:     end

Public Instance Methods

inspect() click to toggle source
    # File lib/mechanize/response_code_error.rb, line 20
20:     def inspect; to_s; end
to_s() click to toggle source
    # File lib/mechanize/response_code_error.rb, line 16
16:     def to_s
17:       "#{response_code} => #{Net::HTTPResponse::CODE_TO_OBJ[response_code]}"
18:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.