Sha256: 1151848bfe426206bce0c674869afc1f1af929feec87d55b92deeb0eb8193f9c

Contents?: true

Size: 423 Bytes

Versions: 5

Compression:

Stored size: 423 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 < RuntimeError
    attr_reader :content_type

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

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
kitamomonga-mechanize-0.9.3.20090724215219 lib/mechanize/content_type_error.rb
tenderlove-mechanize-0.9.3.20090911221705 lib/mechanize/content_type_error.rb
domo-0.0.4 vendor/bundle/ruby/1.9.1/gems/mechanize-1.0.0/lib/mechanize/content_type_error.rb
mechanize-1.0.1.beta.20110107104205 lib/mechanize/content_type_error.rb
mechanize-1.0.0 lib/mechanize/content_type_error.rb