source file: /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/email/Errors.py
file stats: 11 lines, 11 executed: 100.0% covered
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."""