~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2007-07-12 15:51:19 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712155119-zmcbukds65jw3tou
Detect truncated indices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
353
353
        self._type = _type
354
354
 
355
355
 
 
356
class BadIndexData(BzrError):
 
357
 
 
358
    _fmt = "Error in data for index %(value)s."
 
359
 
 
360
    def __init__(self, value):
 
361
        BzrError.__init__(self)
 
362
        self.value = value
 
363
 
 
364
 
356
365
class BadIndexOptions(BzrError):
357
366
 
358
367
    _fmt = "Could not parse options for index %(value)s."