/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-21 02:46:21 UTC
  • mfrom: (2681.1.40 send-bundle)
  • Revision ID: pqm@pqm.ubuntu.com-20070821024621-czmqk59igiyvsgk8
"send" now sends the message as an attachment

Show diffs side-by-side

added added

removed removed

Lines of Context:
2321
2321
        self.error = error
2322
2322
 
2323
2323
 
 
2324
class NoMessageSupplied(BzrError):
 
2325
 
 
2326
    _fmt = "No message supplied."
 
2327
 
 
2328
 
 
2329
class UnknownMailClient(BzrError):
 
2330
 
 
2331
    _fmt = "Unknown mail client: %(mail_client)s"
 
2332
 
 
2333
    def __init__(self, mail_client):
 
2334
        BzrError.__init__(self, mail_client=mail_client)
 
2335
 
 
2336
 
 
2337
class MailClientNotFound(BzrError):
 
2338
 
 
2339
    _fmt = "Unable to find mail client with the following names:"\
 
2340
        " %(mail_command_list_string)s"
 
2341
 
 
2342
    def __init__(self, mail_command_list):
 
2343
        mail_command_list_string = ', '.join(mail_command_list)
 
2344
        BzrError.__init__(self, mail_command_list=mail_command_list,
 
2345
                          mail_command_list_string=mail_command_list_string)
 
2346
 
2324
2347
class SMTPConnectionRefused(SMTPError):
2325
2348
 
2326
2349
    _fmt = "SMTP connection to %(host)s refused"