Mercurial > kallithea
diff rhodecode/lib/rcmail/exceptions.py @ 2031:82a88013a3fd
merge 1.3 into stable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 26 Feb 2012 17:25:09 +0200 |
parents | 349a0ca30a75 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rhodecode/lib/rcmail/exceptions.py Sun Feb 26 17:25:09 2012 +0200 @@ -0,0 +1,13 @@ + + +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. + """