Class WWW::Mechanize::ContentTypeError
In: lib/mechanize/errors.rb
Parent: RuntimeError
Mechanize\n[lib/mechanize.rb\nlib/mechanize/cookie.rb\nlib/mechanize/errors.rb\nlib/mechanize/form.rb\nlib/mechanize/form_elements.rb\nlib/mechanize/history.rb\nlib/mechanize/list.rb\nlib/mechanize/page.rb\nlib/mechanize/page_elements.rb\nlib/mechanize/pluggable_parsers.rb] lib/mechanize.rb WWW dot/m_19_0.png

Synopsis

This class contains an error for when a pluggable parser tries to parse a content type that it does not know how to handle. For example if WWW::Mechanize::Page were to try to parse a PDF, a ContentTypeError would be thrown.

Methods

new  

Attributes

content_type  [R] 

Public Class methods

[Source]

    # File lib/mechanize/errors.rb, line 11
11:       def initialize(content_type)
12:         @content_type = content_type
13:       end

[Validate]