~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-21 20:07:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2212.
  • Revision ID: john@arbash-meinel.com-20061221200734-3kqiep3996uxtwsc
Add an exception class when the knit index storage method is unknown, and properly test for it

Show diffs side-by-side

added added

removed removed

Lines of Context:
952
952
        self.how = how
953
953
 
954
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
 
955
970
class NoSuchExportFormat(BzrError):
956
971
    
957
972
    _fmt = "Export format %(format)r not supported"