blob: 71d7663c34714e43b8566259bffef0d7a9585bf7 [file] [log] [blame]
Barry Warsawba925802001-09-23 03:17:28 +00001# Copyright (C) 2001 Python Software Foundation
2# Author: barry@zope.com (Barry Warsaw)
3
4"""email package exception classes.
5"""
6
7
Barry Warsawe968ead2001-10-04 17:05:11 +00008
Barry Warsawba925802001-09-23 03:17:28 +00009class MessageError(Exception):
10 """Base class for errors in this module."""
11
12
13class MessageParseError(MessageError):
14 """Base class for message parsing errors."""
15
16
17class HeaderParseError(MessageParseError):
18 """Error while parsing headers."""
19
20
21class BoundaryError(MessageParseError):
22 """Couldn't find terminating boundary."""
23
24
25class MultipartConversionError(MessageError, TypeError):
26 """Conversion to a multipart is prohibited."""