/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: Robert Collins
  • Date: 2007-10-11 04:54:04 UTC
  • mfrom: (2904 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20071011045404-lj5a81n4ripi01mt
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
841
841
 
842
842
    _fmt = "Cannot acquire write lock on %(fname)s. %(msg)s"
843
843
 
 
844
    @symbol_versioning.deprecated_method(symbol_versioning.zero_ninetytwo)
844
845
    def __init__(self, fname, msg):
845
846
        LockError.__init__(self, '')
846
847
        self.fname = fname
847
848
        self.msg = msg
848
849
 
849
850
 
 
851
class LockFailed(LockError):
 
852
 
 
853
    internal_error = False
 
854
 
 
855
    _fmt = "Cannot lock %(lock)s: %(why)s"
 
856
 
 
857
    def __init__(self, lock, why):
 
858
        LockError.__init__(self, '')
 
859
        self.lock = lock
 
860
        self.why = why
 
861
 
 
862
 
850
863
class OutSideTransaction(BzrError):
851
864
 
852
865
    _fmt = ("A transaction related operation was attempted after"
874
887
 
875
888
class UnlockableTransport(LockError):
876
889
 
 
890
    internal_error = False
 
891
 
877
892
    _fmt = "Cannot lock: transport is read only: %(transport)s"
878
893
 
879
894
    def __init__(self, transport):
2185
2200
class PatchMissing(BzrError):
2186
2201
    """Raise a patch type was specified but no patch supplied"""
2187
2202
 
2188
 
    _fmt = "patch_type was %(patch_type)s, but no patch was supplied."
 
2203
    _fmt = "Patch_type was %(patch_type)s, but no patch was supplied."
2189
2204
 
2190
2205
    def __init__(self, patch_type):
2191
2206
        BzrError.__init__(self)