⚠️ 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.
| Use Case | Command / Method | Description |
|---|---|---|
| Access the content type that triggered the error | error.content_type | Returns the MIME type that could not be parsed (e.g., "application/pdf") |
| Create a new error instance | Mechanize::ContentTypeError.new | Instantiate a new content type error (usually raised internally) |
new — Creates a new ContentTypeError instancecontent_type — Returns the content type that caused the errorcontent_type (attr_reader) — The MIME type that the parser could not handleGenerated 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)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format