Sha256: 733a334751c2b7ee8b2d5d1ebb1e279485b407955f80418c53b049924edd7d72

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

class Mechanize
  # =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 Mechanize::Page were to try to parse a PDF, a ContentTypeError
  # would be thrown.
  class ContentTypeError < Mechanize::Error
    attr_reader :content_type

    def initialize(content_type)
      @content_type = content_type
    end
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
aai10-mechanize-2.0.1.0 lib/mechanize/content_type_error.rb
neocoin-mechanize-2.0.2 lib/mechanize/content_type_error.rb
mechanize-2.0.1 lib/mechanize/content_type_error.rb
mechanize-2.0 lib/mechanize/content_type_error.rb
mechanize-2.0.pre.2 lib/mechanize/content_type_error.rb
mechanize-2.0.pre.1 lib/mechanize/content_type_error.rb