Lines Matching defs:error
167 Errors raise the exception class <instance>.error("<reason>").
169 which is a sub-class of 'error'. Mailbox status changes
173 "error" exceptions imply a program error.
184 class error(Exception): pass # Logical errors - debug required
185 class abort(error): pass # Service errors - close and retry
253 raise self.error(self.welcome)
266 raise self.error('server not IMAP4 compliant')
325 raise self.error("got more than %d bytes" % _MAXLINE)
342 # On Windows, this may result in WSAEINVAL (error 10022):
440 # raise self.error("Server doesn't allow %s authentication." % mech)
444 raise self.error(dat[-1].decode('utf-8', 'replace'))
517 raise IMAP4.error("Server does not support ENABLE")
612 raise self.error(dat[-1])
731 raise IMAP4.error("Non-None charset not valid in UTF8 mode")
802 # raise self.error('unimplemented extension command: %s' % name)
812 raise self.error('SSL support missing')
828 raise self.error("Couldn't establish TLS session")
839 # raise self.error('%s unimplemented in IMAP4 (obtain IMAP4rev1 server, or re-code)' % name)
883 raise self.error("Unknown IMAP4 UID command: %s" % command)
885 raise self.error("command %s illegal in state %s, "
934 # raise self.error('unknown extension command: %s' % name)
968 raise self.error("command %s illegal in state %s, "
1008 raise self.abort('socket error: %s' % val)
1033 raise self.abort('socket error: %s' % val)
1050 except self.error as val:
1051 raise self.error('command: %s => %s' % (name, val))
1055 raise self.error('%s command error: %s %s' % (name, typ, data))
1062 raise self.error('no CAPABILITY response from server')
1185 raise self.abort('socket error: EOF')
1189 raise self.abort('socket error: unterminated line: %r' % line)
1555 except getopt.error as val: