~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2006-08-16 04:36:11 UTC
  • mfrom: (1927 +trunk)
  • mto: (1910.4.8 test-tweaks)
  • mto: This revision was merged to the branch mainline in revision 1936.
  • Revision ID: andrew.bennetts@canonical.com-20060816043611-7818a1909ab84498
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
        self.function = function
313
313
 
314
314
 
 
315
class InaccessibleParent(PathError):
 
316
    """Parent not accessible given base %(base)s and relative path %(path)s"""
 
317
 
 
318
    def __init__(self, path, base):
 
319
        PathError.__init__(self, path)
 
320
        self.base = base
 
321
 
 
322
 
315
323
class NoRepositoryPresent(BzrNewError):
316
324
    """No repository present: %(path)r"""
317
325
    def __init__(self, bzrdir):
1053
1061
    """Not a bzr revision-bundle: %(text)r"""
1054
1062
 
1055
1063
    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
 
1064
        BzrNewError.__init__(self)
 
1065
        self.text = text
 
1066
 
 
1067
 
 
1068
class BadBundle(BzrNewError): 
 
1069
    """Bad bzr revision-bundle: %(text)r"""
 
1070
 
 
1071
    def __init__(self, text):
 
1072
        BzrNewError.__init__(self)
 
1073
        self.text = text
 
1074
 
 
1075
 
 
1076
class MalformedHeader(BadBundle): 
 
1077
    """Malformed bzr revision-bundle header: %(text)r"""
 
1078
 
 
1079
    def __init__(self, text):
 
1080
        BzrNewError.__init__(self)
 
1081
        self.text = text
 
1082
 
 
1083
 
 
1084
class MalformedPatches(BadBundle): 
 
1085
    """Malformed patches in bzr revision-bundle: %(text)r"""
 
1086
 
 
1087
    def __init__(self, text):
 
1088
        BzrNewError.__init__(self)
 
1089
        self.text = text
 
1090
 
 
1091
 
 
1092
class MalformedFooter(BadBundle): 
 
1093
    """Malformed footer in bzr revision-bundle: %(text)r"""
 
1094
 
 
1095
    def __init__(self, text):
 
1096
        BzrNewError.__init__(self)
 
1097
        self.text = text
 
1098
 
 
1099
class UnsupportedEOLMarker(BadBundle):
 
1100
    """End of line marker was not \\n in bzr revision-bundle"""    
 
1101
 
 
1102
    def __init__(self):
 
1103
        BzrNewError.__init__(self)