/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

merge with bzr.dev

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,"
962
971
 
963
972
class NoSuchRevision(BzrError):
964
973
 
965
 
    _fmt = "Branch %(branch)s has no revision %(revision)s"
 
974
    _fmt = "%(branch)s has no revision %(revision)s"
966
975
 
967
976
    internal_error = True
968
977
 
969
978
    def __init__(self, branch, revision):
 
979
        # 'branch' may sometimes be an internal object like a KnitRevisionStore
970
980
        BzrError.__init__(self, branch=branch, revision=revision)
971
981
 
972
982
 
 
983
# zero_ninetyone: this exception is no longer raised and should be removed
973
984
class NotLeftParentDescendant(BzrError):
974
985
 
975
986
    _fmt = ("Revision %(old_revision)s is not the left parent of"
1625
1636
        self.text_revision = text_revision
1626
1637
        self.file_id = file_id
1627
1638
 
 
1639
 
1628
1640
class DuplicateFileId(BzrError):
1629
1641
 
1630
1642
    _fmt = "File id {%(file_id)s} already exists in inventory as %(entry)s"
2310
2322
        self.error = error
2311
2323
 
2312
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
 
2313
2348
class SMTPConnectionRefused(SMTPError):
2314
2349
 
2315
2350
    _fmt = "SMTP connection to %(host)s refused"