Exception: WWW::Mechanize::ContentTypeError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- WWW::Mechanize::ContentTypeError
- Defined in:
- lib/www/mechanize/content_type_error.rb
Overview
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.
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
Instance Method Summary collapse
-
#initialize(content_type) ⇒ ContentTypeError
constructor
A new instance of ContentTypeError.
Constructor Details
#initialize(content_type) ⇒ ContentTypeError
Returns a new instance of ContentTypeError.
11 12 13 |
# File 'lib/www/mechanize/content_type_error.rb', line 11 def initialize(content_type) @content_type = content_type end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
9 10 11 |
# File 'lib/www/mechanize/content_type_error.rb', line 9 def content_type @content_type end |