home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / pythonwin / python.exe / ERRORS.PY < prev    next >
Encoding:
Text File  |  2002-06-01  |  621 b   |  27 lines

  1. # Copyright (C) 2001,2002 Python Software Foundation
  2. # Author: barry@zope.com (Barry Warsaw)
  3.  
  4. """email package exception classes.
  5. """
  6.  
  7.  
  8.  
  9. class MessageError(Exception):
  10.     """Base class for errors in the email package."""
  11.  
  12.  
  13. class MessageParseError(MessageError):
  14.     """Base class for message parsing errors."""
  15.  
  16.  
  17. class HeaderParseError(MessageParseError):
  18.     """Error while parsing headers."""
  19.  
  20.  
  21. class BoundaryError(MessageParseError):
  22.     """Couldn't find terminating boundary."""
  23.  
  24.  
  25. class MultipartConversionError(MessageError, TypeError):
  26.     """Conversion to a multipart is prohibited."""
  27.