/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: John Arbash Meinel
  • Date: 2006-08-16 18:38:57 UTC
  • mfrom: (1934 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1937.
  • Revision ID: john@arbash-meinel.com-20060816183857-7307edffa7098bd2
[merge] bzr.dev 1934

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
(use bzr checkout if you wish to build a working tree): %(path)s"""
313
313
 
314
314
 
 
315
class AtomicFileAlreadyClosed(PathError):
 
316
    """'%(function)s' called on an AtomicFile after it was closed: %(path)s"""
 
317
 
 
318
    def __init__(self, path, function):
 
319
        PathError.__init__(self, path=path, extra=None)
 
320
        self.function = function
 
321
 
 
322
 
 
323
class InaccessibleParent(PathError):
 
324
    """Parent not accessible given base %(base)s and relative path %(path)s"""
 
325
 
 
326
    def __init__(self, path, base):
 
327
        PathError.__init__(self, path)
 
328
        self.base = base
 
329
 
 
330
 
315
331
class NoRepositoryPresent(BzrNewError):
316
332
    """No repository present: %(path)r"""
317
333
    def __init__(self, bzrdir):
1053
1069
    """Not a bzr revision-bundle: %(text)r"""
1054
1070
 
1055
1071
    def __init__(self, text):
1056
 
        self.text = text
1057
 
 
1058
 
 
1059
 
class BadBundle(Exception): pass
1060
 
 
1061
 
 
1062
 
class MalformedHeader(BadBundle): pass
1063
 
 
1064
 
 
1065
 
class MalformedPatches(BadBundle): pass
1066
 
 
1067
 
 
1068
 
class MalformedFooter(BadBundle): pass
 
1072
        BzrNewError.__init__(self)
 
1073
        self.text = text
 
1074
 
 
1075
 
 
1076
class BadBundle(BzrNewError): 
 
1077
    """Bad bzr revision-bundle: %(text)r"""
 
1078
 
 
1079
    def __init__(self, text):
 
1080
        BzrNewError.__init__(self)
 
1081
        self.text = text
 
1082
 
 
1083
 
 
1084
class MalformedHeader(BadBundle): 
 
1085
    """Malformed bzr revision-bundle header: %(text)r"""
 
1086
 
 
1087
    def __init__(self, text):
 
1088
        BzrNewError.__init__(self)
 
1089
        self.text = text
 
1090
 
 
1091
 
 
1092
class MalformedPatches(BadBundle): 
 
1093
    """Malformed patches in bzr revision-bundle: %(text)r"""
 
1094
 
 
1095
    def __init__(self, text):
 
1096
        BzrNewError.__init__(self)
 
1097
        self.text = text
 
1098
 
 
1099
 
 
1100
class MalformedFooter(BadBundle): 
 
1101
    """Malformed footer in bzr revision-bundle: %(text)r"""
 
1102
 
 
1103
    def __init__(self, text):
 
1104
        BzrNewError.__init__(self)
 
1105
        self.text = text
 
1106
 
 
1107
class UnsupportedEOLMarker(BadBundle):
 
1108
    """End of line marker was not \\n in bzr revision-bundle"""    
 
1109
 
 
1110
    def __init__(self):
 
1111
        BzrNewError.__init__(self)