Exception: Net::IMAP::InvalidResponseError
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error,
StandardError
|
|
|
Instance Chain:
self,
Error,
StandardError
|
|
| Inherits: |
Net::IMAP::Error
|
| Defined in: | lib/net/imap/errors.rb |
Overview
Error raised when the server sends an invalid response.
This is different from UnknownResponseError: the response has been rejected. Although it may be parsable, the server is forbidden from sending it in the current context.
This could be caused by a bug in the server or in ::Net::IMAP. Or it
might indicate a malicious server, a man-in-the-middle attack, or
client-side command injection. So the client should automatically
disconnect, abruptly (without logout).
Note that InvalidResponseError does not inherit from ResponseError: it
can be raised before the response is fully parsed. A related
ResponseParseError or ResponseError may be the #cause.