~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 14:05:34 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712140534-fpo7n43occzqixe7
A validate that goes boom.

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
    _fmt = "Error in command line options"
344
344
 
345
345
 
 
346
class BadIndexFormatSignature(BzrError):
 
347
 
 
348
    _fmt = "%(value)s is not an index of type %(_type)s."
 
349
 
 
350
    def __init__(self, value, _type):
 
351
        BzrError.__init__(self)
 
352
        self.value = value
 
353
        self._type = _type
 
354
 
 
355
 
346
356
class BadOptionValue(BzrError):
347
357
 
348
358
    _fmt = """Bad value "%(value)s" for option "%(name)s"."""