~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 16:49:54 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712164954-gtnnmqd5oyfob20t
Handle basic node adds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
        self.value = value
363
363
 
364
364
 
 
365
class BadIndexKey(BzrError):
 
366
 
 
367
    _fmt = "The key '%(key)s' is not a valid key."
 
368
 
 
369
    def __init__(self, key):
 
370
        BzrError.__init__(self)
 
371
        self.key = key
 
372
 
 
373
 
365
374
class BadIndexOptions(BzrError):
366
375
 
367
376
    _fmt = "Could not parse options for index %(value)s."
371
380
        self.value = value
372
381
 
373
382
 
 
383
class BadIndexValue(BzrError):
 
384
 
 
385
    _fmt = "The value '%(value)s' is not a valid value."
 
386
 
 
387
    def __init__(self, value):
 
388
        BzrError.__init__(self)
 
389
        self.value = value
 
390
 
 
391
 
374
392
class BadOptionValue(BzrError):
375
393
 
376
394
    _fmt = """Bad value "%(value)s" for option "%(name)s"."""