~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2007-08-10 00:03:44 UTC
  • mto: (2681.5.3 bzr-mail)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: aaron.bentley@utoronto.ca-20070810000344-cyfuo1igj88pwb2s
Refactor to increase code sharing, allow multiple command names for tbird

Show diffs side-by-side

added added

removed removed

Lines of Context:
2321
2321
 
2322
2322
    def __init__(self, mail_client):
2323
2323
        BzrError.__init__(self, mail_client=mail_client)
 
2324
 
 
2325
 
 
2326
class MailClientNotFound(BzrError):
 
2327
 
 
2328
    _fmt = "Unable to find mail client with the following names:"\
 
2329
        " %(mail_command_list_string)s"
 
2330
 
 
2331
    def __init__(self, mail_command_list):
 
2332
        mail_command_list_string = ', '.join(mail_command_list)
 
2333
        BzrError.__init__(self, mail_command_list=mail_command_list,
 
2334
                          mail_command_list_string=mail_command_list_string)