Changeset 40 for branches/3.0/turbomail/exceptions.py
- Timestamp:
- 10/18/07 01:15:41 (1 year ago)
- Files:
-
- 1 modified
-
branches/3.0/turbomail/exceptions.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/turbomail/exceptions.py
r1 r40 4 4 5 5 6 __all__ = ['MailException', 'MailNotEnabledE xception', 'MailConfigurationException']6 __all__ = ['MailException', 'MailNotEnabledError', 'MailConfigurationError', 'ProviderException', 'ProviderExhaustedException', 'ManagerException'] 7 7 8 8 … … 12 12 pass 13 13 14 15 class MailNotEnabledE xception(MailException):14 15 class MailNotEnabledError(MailException): 16 16 """Attempted to use TurboMail before being enabled.""" 17 17 … … 20 20 "framework but outbound mail hasn't been enabled in the " \ 21 21 "config file [via mail.on]." 22 23 24 class MailConfigurationE xception(MailException):22 23 24 class MailConfigurationError(MailException): 25 25 """There was an error in the configuration of TurboMail.""" 26 26 27 args = () 28 def __init__(self, message): 29 self.message= message 30 27 pass 28 29 30 class ProviderException(MailException): 31 """The base for all TurboMail Provider exceptions.""" 32 33 pass 34 35 36 class ProviderExhaustedException(MailException): 37 """Attempted to use TurboMail before being enabled.""" 38 31 39 def __str__(self): 32 return self.message 40 return "This Provider instance is no longer capable of delivering mail." 41 42 43 class ManagerException(MailException): 44 """The base for all TurboMail Manager exceptions.""" 45 46 pass
