Edit me on GitHub

Source code for pyramid_mailer.exceptions

class InvalidMessage(RuntimeError):
[docs] """ Raised if message is missing vital headers, such as recipients or sender address. """ class BadHeaders(RuntimeError):
[docs] """ Raised if message contains newlines in headers. """ class EncodingError(Exception):
"""Thrown when there is an encoding error.""" pass