Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: b0f963526586ff8ed20d2d21624d4cfeef76bc5b authored by Martin v. Löwis on 11 March 2008, 18:00:08 UTC
Prepare for 2.3.7.
Tip revision: b0f9635
Errors.py
# Copyright (C) 2001,2002 Python Software Foundation
# Author: barry@zope.com (Barry Warsaw)

"""email package exception classes.
"""



class MessageError(Exception):
    """Base class for errors in the email package."""


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."""
back to top