Exception raised on any errors. The reason for the exception is passed to the constructor as a string.
imaplib/IMAP4.error
IMAP4.error