Class Mechanize::RobotsDisallowedError
In: lib/mechanize/robots_disallowed_error.rb
Parent: Mechanize::Error

Exception that is raised when an access to a resource is disallowed by robots.txt or by HTML document itself.

Methods

inspect   new   to_s   uri  

Attributes

url  [R]  Returns the URL (string) of the resource that caused this error.

Public Class methods

Public Instance methods

inspect()

Alias for to_s

Returns the URL (URI object) of the resource that caused this error. URI::InvalidURIError may be raised if the URL happens to be invalid or not understood by the URI library.

[Validate]