~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-14 16:15:53 UTC
  • mfrom: (1711.2.121 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060814161553-7186d7578591bf2b
(hermann kraus) Fix bundle exceptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
1061
1061
    """Not a bzr revision-bundle: %(text)r"""
1062
1062
 
1063
1063
    def __init__(self, text):
1064
 
        self.text = text
1065
 
 
1066
 
 
1067
 
class BadBundle(Exception): pass
1068
 
 
1069
 
 
1070
 
class MalformedHeader(BadBundle): pass
1071
 
 
1072
 
 
1073
 
class MalformedPatches(BadBundle): pass
1074
 
 
1075
 
 
1076
 
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)