1
2
3 """Exceptions used by TurboMail to report common errors."""
4
5
6 __all__ = ['MailException', 'MailNotEnabledException', 'MailConfigurationException']
7
8
10 """The base for all TurboMail exceptions."""
11
12 pass
13
14
16 """Attempted to use TurboMail before being enabled."""
17
19 return "An attempt was made to use a facility of the TurboMail " \
20 "framework but outbound mail hasn't been enabled in the " \
21 "config file [via mail.on]."
22
23
25 """There was an error in the configuration of TurboMail."""
26
27 args = ()
30
33