Sha256: 87f6bf95995a0e50f4570ace7248386b18f71ecb395652c3e63b50d7d09c4d99

Contents?: true

Size: 405 Bytes

Versions: 17

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true
##
# This error is raised 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 Mechanize::ContentTypeError < Mechanize::Error
  attr_reader :content_type

  def initialize(content_type)
    @content_type = content_type
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mechanize-2.14.0 lib/mechanize/content_type_error.rb
mechanize-2.13.0 lib/mechanize/content_type_error.rb
mechanize-2.12.2 lib/mechanize/content_type_error.rb
mechanize-2.12.1 lib/mechanize/content_type_error.rb
mechanize-2.12.0 lib/mechanize/content_type_error.rb
mechanize-2.11.0 lib/mechanize/content_type_error.rb
mechanize-2.10.1 lib/mechanize/content_type_error.rb
mechanize-2.10.0 lib/mechanize/content_type_error.rb
mechanize-2.9.2 lib/mechanize/content_type_error.rb
mechanize-2.9.1 lib/mechanize/content_type_error.rb
mechanize-2.9.0 lib/mechanize/content_type_error.rb
mechanize-2.8.5 lib/mechanize/content_type_error.rb
mechanize-2.8.4 lib/mechanize/content_type_error.rb
mechanize-2.8.3 lib/mechanize/content_type_error.rb
mechanize-2.8.2 lib/mechanize/content_type_error.rb
mechanize-2.8.1 lib/mechanize/content_type_error.rb
mechanize-2.8.0 lib/mechanize/content_type_error.rb