/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 from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
562
562
        PathError.__init__(self, base, reason)
563
563
 
564
564
 
 
565
class UnavailableRepresentation(InternalBzrError):
 
566
 
 
567
    _fmt = ("The encoding '%(wanted)s' is not available for key %(key)s which "
 
568
        "is encoded as '%(native)s'.")
 
569
 
 
570
    def __init__(self, key, wanted, native):
 
571
        InternalBzrError.__init__(self)
 
572
        self.wanted = wanted
 
573
        self.native = native
 
574
        self.key = key
 
575
 
 
576
 
565
577
class UnknownHook(BzrError):
566
578
 
567
579
    _fmt = "The %(type)s hook '%(hook)s' is unknown in this version of bzrlib."
894
906
        self.obj = obj
895
907
 
896
908
 
897
 
class ReadOnlyLockError(LockError):
898
 
 
899
 
    _fmt = "Cannot acquire write lock on %(fname)s. %(msg)s"
900
 
 
901
 
    @symbol_versioning.deprecated_method(symbol_versioning.zero_ninetytwo)
902
 
    def __init__(self, fname, msg):
903
 
        LockError.__init__(self, '')
904
 
        self.fname = fname
905
 
        self.msg = msg
906
 
 
907
 
 
908
909
class LockFailed(LockError):
909
910
 
910
911
    internal_error = False
1066
1067
        BzrError.__init__(self, branch=branch, revision=revision)
1067
1068
 
1068
1069
 
1069
 
# zero_ninetyone: this exception is no longer raised and should be removed
1070
 
class NotLeftParentDescendant(InternalBzrError):
1071
 
 
1072
 
    _fmt = ("Revision %(old_revision)s is not the left parent of"
1073
 
            " %(new_revision)s, but branch %(branch_location)s expects this")
1074
 
 
1075
 
    def __init__(self, branch, old_revision, new_revision):
1076
 
        BzrError.__init__(self, branch_location=branch.base,
1077
 
                          old_revision=old_revision,
1078
 
                          new_revision=new_revision)
1079
 
 
1080
 
 
1081
1070
class RangeInChangeOption(BzrError):
1082
1071
 
1083
1072
    _fmt = "Option --change does not accept revision ranges"
2700
2689
        self.path = path
2701
2690
        self.kind = kind
2702
2691
        self.user_encoding = osutils.get_user_encoding()
 
2692
 
 
2693
 
 
2694
class CannotBindAddress(BzrError):
 
2695
 
 
2696
    _fmt = 'Cannot bind address "%(host)s:%(port)i": %(orig_error)s.'
 
2697
 
 
2698
    def __init__(self, host, port, orig_error):
 
2699
        BzrError.__init__(self, host=host, port=port,
 
2700
            orig_error=orig_error[1])