1
2
3 """Exceptions used by TurboMail to report common errors."""
4
5
6 __all__ = [
7 'MailException',
8 'MailNotEnabledException',
9 'MailConfigurationException',
10 'TransportException',
11 'TransportExhaustedException',
12 'ManagerException'
13 ]
14
15
16
18 """The base for all TurboMail exceptions."""
19 pass
20
21
23 """Attempted to use TurboMail before being enabled."""
24
26 return "An attempt was made to use a facility of the TurboMail " \
27 "framework but outbound mail hasn't been enabled in the " \
28 "config file [via mail.on]."
29
30
32 """There was an error in the configuration of TurboMail."""
33
34 pass
35
36
38 """The base for all TurboMail Transport exceptions."""
39
40 pass
41
42
44 """Attempted to use TurboMail before being enabled."""
45
47 return "This Transport instance is no longer capable of delivering mail."
48
49
51 """The base for all TurboMail Manager exceptions."""
52 pass
53