/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-28 02:02:09 UTC
  • mfrom: (2749 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2758.
  • Revision ID: mbp@sourcefrog.net-20070828020209-gbhb0onl14e1fjty
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,"
1627
1636
        self.text_revision = text_revision
1628
1637
        self.file_id = file_id
1629
1638
 
 
1639
 
1630
1640
class DuplicateFileId(BzrError):
1631
1641
 
1632
1642
    _fmt = "File id {%(file_id)s} already exists in inventory as %(entry)s"
2312
2322
        self.error = error
2313
2323
 
2314
2324
 
 
2325
class NoMessageSupplied(BzrError):
 
2326
 
 
2327
    _fmt = "No message supplied."
 
2328
 
 
2329
 
 
2330
class UnknownMailClient(BzrError):
 
2331
 
 
2332
    _fmt = "Unknown mail client: %(mail_client)s"
 
2333
 
 
2334
    def __init__(self, mail_client):
 
2335
        BzrError.__init__(self, mail_client=mail_client)
 
2336
 
 
2337
 
 
2338
class MailClientNotFound(BzrError):
 
2339
 
 
2340
    _fmt = "Unable to find mail client with the following names:"\
 
2341
        " %(mail_command_list_string)s"
 
2342
 
 
2343
    def __init__(self, mail_command_list):
 
2344
        mail_command_list_string = ', '.join(mail_command_list)
 
2345
        BzrError.__init__(self, mail_command_list=mail_command_list,
 
2346
                          mail_command_list_string=mail_command_list_string)
 
2347
 
2315
2348
class SMTPConnectionRefused(SMTPError):
2316
2349
 
2317
2350
    _fmt = "SMTP connection to %(host)s refused"