~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:
929
929
    
930
930
    _fmt = "Knit error"
931
931
 
 
932
    internal_error = True
 
933
 
932
934
 
933
935
class KnitHeaderError(KnitError):
934
936
 
950
952
        self.how = how
951
953
 
952
954
 
 
955
class KnitIndexUnknownMethod(KnitError):
 
956
    """Raised when we don't understand the storage method.
 
957
 
 
958
    Currently only 'fulltext' and 'line-delta' are supported.
 
959
    """
 
960
    
 
961
    _fmt = ("Knit index %(filename)s does not have a known method"
 
962
            " in options: %(options)r")
 
963
 
 
964
    def __init__(self, filename, options):
 
965
        KnitError.__init__(self)
 
966
        self.filename = filename
 
967
        self.options = options
 
968
 
 
969
 
953
970
class NoSuchExportFormat(BzrError):
954
971
    
955
972
    _fmt = "Export format %(format)r not supported"