Show
Ignore:
Timestamp:
10/18/07 01:15:41 (1 year ago)
Author:
amcgregor
Message:

Lots of changes. Minor updates to the Message class, created the immediate manager and the debug provider, and created a sample extension, utf8qp.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/3.0/turbomail/exceptions.py

    r1 r40  
    44 
    55 
    6 __all__ = ['MailException', 'MailNotEnabledException', 'MailConfigurationException'] 
     6__all__ = ['MailException', 'MailNotEnabledError', 'MailConfigurationError', 'ProviderException', 'ProviderExhaustedException', 'ManagerException'] 
    77 
    88 
     
    1212        pass 
    1313 
    14                  
    15 class MailNotEnabledException(MailException): 
     14 
     15class MailNotEnabledError(MailException): 
    1616        """Attempted to use TurboMail before being enabled.""" 
    1717         
     
    2020                           "framework but outbound mail hasn't been enabled in the " \ 
    2121                           "config file [via mail.on]." 
    22          
    23          
    24 class MailConfigurationException(MailException): 
     22 
     23 
     24class MailConfigurationError(MailException): 
    2525        """There was an error in the configuration of TurboMail.""" 
    2626         
    27         args = () 
    28         def __init__(self, message): 
    29                 self.message= message 
    30                  
     27        pass 
     28 
     29 
     30class ProviderException(MailException): 
     31        """The base for all TurboMail Provider exceptions.""" 
     32         
     33        pass 
     34 
     35 
     36class ProviderExhaustedException(MailException): 
     37        """Attempted to use TurboMail before being enabled.""" 
     38         
    3139        def __str__(self): 
    32                 return self.message 
     40                return "This Provider instance is no longer capable of delivering mail." 
     41 
     42 
     43class ManagerException(MailException): 
     44        """The base for all TurboMail Manager exceptions.""" 
     45         
     46        pass