/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: Martin Pool
  • Date: 2007-08-21 03:40:50 UTC
  • mfrom: (2736 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2737.
  • Revision ID: mbp@sourcefrog.net-20070821034050-gcppw53kbcm2gwgd
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
        self.tree = tree
265
265
 
266
266
 
 
267
class NoSuchIdInRepository(NoSuchId):
 
268
 
 
269
    _fmt = ("The file id %(file_id)r is not present in the repository"
 
270
            " %(repository)r")
 
271
 
 
272
    def __init__(self, repository, file_id):
 
273
        BzrError.__init__(self, repository=repository, file_id=file_id)
 
274
 
 
275
 
267
276
class InventoryModified(BzrError):
268
277
 
269
278
    _fmt = ("The current inventory for the tree %(tree)r has been modified,"
2312
2321
        self.error = error
2313
2322
 
2314
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
 
2315
2347
class SMTPConnectionRefused(SMTPError):
2316
2348
 
2317
2349
    _fmt = "SMTP connection to %(host)s refused"