Sha256: 12066861cf24898ffe1828e155194884c4c2e897d7c39a87cc195a7be46c00d8

Contents?: true

Size: 473 Bytes

Versions: 24

Compression:

Stored size: 473 Bytes

Contents

module WWW
  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 WWW::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
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
eric-mechanize-0.9.3.20090623142847 lib/www/mechanize/content_type_error.rb
knu-mechanize-0.9.3.20090623142847 lib/www/mechanize/content_type_error.rb
tenderlove-mechanize-0.9.3.20090617085936 lib/www/mechanize/content_type_error.rb
tenderlove-mechanize-0.9.3.20090623142847 lib/www/mechanize/content_type_error.rb
mechanize-ntlm-0.9.1 lib/www/mechanize/content_type_error.rb
mechanize-0.7.2 lib/www/mechanize/content_type_error.rb
mechanize-0.7.1 lib/www/mechanize/content_type_error.rb
mechanize-0.7.7 lib/www/mechanize/content_type_error.rb
mechanize-0.7.3 lib/www/mechanize/content_type_error.rb
mechanize-0.7.0 lib/www/mechanize/content_type_error.rb
mechanize-0.7.4 lib/www/mechanize/content_type_error.rb
mechanize-0.7.5 lib/www/mechanize/content_type_error.rb
mechanize-0.7.6 lib/www/mechanize/content_type_error.rb
mechanize-0.7.8 lib/www/mechanize/content_type_error.rb
mechanize-0.8.0 lib/www/mechanize/content_type_error.rb
mechanize-0.8.3 lib/www/mechanize/content_type_error.rb
mechanize-0.8.2 lib/www/mechanize/content_type_error.rb
mechanize-0.8.4 lib/www/mechanize/content_type_error.rb
mechanize-0.8.1 lib/www/mechanize/content_type_error.rb
mechanize-0.9.1 lib/www/mechanize/content_type_error.rb