home *** CD-ROM | disk | FTP | other *** search
/ Freelog 33 / Freelog033.iso / Progr / Python-2.2.1.exe / ERRORS.PY < prev    next >
Encoding:
Text File  |  2001-10-04  |  610 b   |  27 lines

  1. # Copyright (C) 2001 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 this module."""
  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.