Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: dedb2934aa70cd45d3999bc222f1f97575067fe5 authored by cvs2svn on 27 May 2004, 05:59:16 UTC
This commit was manufactured by cvs2svn to create tag 'r234'.
Tip revision: dedb293
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