2001-09-23 00:17:28 -03:00
|
|
|
|
# Copyright (C) 2001 Python Software Foundation
|
|
|
|
|
# Author: barry@zope.com (Barry Warsaw)
|
|
|
|
|
|
|
|
|
|
"""email package exception classes.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
2001-10-04 14:05:11 -03:00
|
|
|
|
|
2001-09-23 00:17:28 -03:00
|
|
|
|
class MessageError(Exception):
|
|
|
|
|
"""Base class for errors in this module."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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."""
|