2002-04-11 05:01:31 +08:00
|
|
|
|
# Copyright (C) 2001,2002 Python Software Foundation
|
2001-09-23 11:17:28 +08:00
|
|
|
|
# Author: barry@zope.com (Barry Warsaw)
|
|
|
|
|
|
|
|
|
|
"""email package exception classes.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
2001-10-05 01:05:11 +08:00
|
|
|
|
|
2001-09-23 11:17:28 +08:00
|
|
|
|
class MessageError(Exception):
|
2002-06-01 13:45:37 +08:00
|
|
|
|
"""Base class for errors in the email package."""
|
2001-09-23 11:17:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MessageParseError(MessageError):
|
|
|
|
|
"""Base class for message parsing errors."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class HeaderParseError(MessageParseError):
|
|
|
|
|
"""Error while parsing headers."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BoundaryError(MessageParseError):
|
|
|
|
|
"""Couldn't find terminating boundary."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MultipartConversionError(MessageError, TypeError):
|
|
|
|
|
"""Conversion to a multipart is prohibited."""
|