Class Mechanize::ResponseReadError
In: lib/mechanize/response_read_error.rb
Parent: Mechanize::Error

Raised when Mechanize encounters an error while reading the response body from the server. Contains the response headers and the response body up to the error along with the initial error.

Methods

force_parse   new  

Attributes

body_io  [R] 
error  [R] 
mechanize  [R] 
response  [R] 
uri  [R] 

Public Class methods

Creates a new ResponseReadError with the error raised, the response and the body_io for content read so far.

Public Instance methods

Converts this error into a Page, File, etc. based on the content-type

[Validate]