ri > Mechanize::ContentTypeError

```html

📖 Mechanize::ContentTypeError < Mechanize::Error

⚠️ 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.

🚀 Quick Reference

Use CaseCommand / MethodDescription
Access the content type that triggered the errorerror.content_typeReturns the MIME type that could not be parsed (e.g., "application/pdf")
Create a new error instanceMechanize::ContentTypeError.newInstantiate a new content type error (usually raised internally)

🛠️ Class methods

🧩 Instance methods

📦 Attributes

```
Mechanize::ContentTypeError
📖 Mechanize::ContentTypeError < Mechanize::Error 🚀 Quick Reference 🛠️ Class methods 🧩 Instance methods 📦 Attributes

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 16:37 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format