~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1075
1075
    """Not a bzr revision-bundle: %(text)r"""
1076
1076
 
1077
1077
    def __init__(self, text):
1078
 
        self.text = text
1079
 
 
1080
 
 
1081
 
class BadBundle(Exception): pass
1082
 
 
1083
 
 
1084
 
class MalformedHeader(BadBundle): pass
1085
 
 
1086
 
 
1087
 
class MalformedPatches(BadBundle): pass
1088
 
 
1089
 
 
1090
 
class MalformedFooter(BadBundle): pass
 
1078
        BzrNewError.__init__(self)
 
1079
        self.text = text
 
1080
 
 
1081
 
 
1082
class BadBundle(BzrNewError): 
 
1083
    """Bad bzr revision-bundle: %(text)r"""
 
1084
 
 
1085
    def __init__(self, text):
 
1086
        BzrNewError.__init__(self)
 
1087
        self.text = text
 
1088
 
 
1089
 
 
1090
class MalformedHeader(BadBundle): 
 
1091
    """Malformed bzr revision-bundle header: %(text)r"""
 
1092
 
 
1093
    def __init__(self, text):
 
1094
        BzrNewError.__init__(self)
 
1095
        self.text = text
 
1096
 
 
1097
 
 
1098
class MalformedPatches(BadBundle): 
 
1099
    """Malformed patches in bzr revision-bundle: %(text)r"""
 
1100
 
 
1101
    def __init__(self, text):
 
1102
        BzrNewError.__init__(self)
 
1103
        self.text = text
 
1104
 
 
1105
 
 
1106
class MalformedFooter(BadBundle): 
 
1107
    """Malformed footer in bzr revision-bundle: %(text)r"""
 
1108
 
 
1109
    def __init__(self, text):
 
1110
        BzrNewError.__init__(self)
 
1111
        self.text = text
 
1112
 
 
1113
class UnsupportedEOLMarker(BadBundle):
 
1114
    """End of line marker was not \\n in bzr revision-bundle"""    
 
1115
 
 
1116
    def __init__(self):
 
1117
        BzrNewError.__init__(self)