Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 339 Bytes
class InvalidMessage(RuntimeError):
"""
Raised if message is missing vital headers, such
as recipients or sender address.
"""
class BadHeaders(RuntimeError):
"""
Raised if message contains newlines in headers.
"""
class EncodingError(Exception):
"""Thrown when there is an encoding error."""
pass