~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-18 11:24:21 UTC
  • mto: This revision was merged to the branch mainline in revision 5684.
  • Revision ID: v.ladeuil+lp@free.fr-20110218112421-bd3tdaviyjbqbfkx
At IRC request, rename interpolation to option expansion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3224
3224
 
3225
3225
# FIXME: I would prefer to define the config related exception classes in
3226
3226
# config.py but the lazy import mechanism proscribes this -- vila 20101222
3227
 
class InterpolationLoop(BzrError):
 
3227
class OptionExpansionLoop(BzrError):
3228
3228
 
3229
 
    _fmt = 'Loop involving %(refs)r while evaluating "%(string)s".'
 
3229
    _fmt = 'Loop involving %(refs)r while expanding "%(string)s".'
3230
3230
 
3231
3231
    def __init__(self, string, refs):
3232
3232
        self.string = string
3233
3233
        self.refs = '->'.join(refs)
3234
3234
 
3235
3235
 
3236
 
class InterpolationUnknownOption(BzrError):
 
3236
class ExpandingUnknownOption(BzrError):
3237
3237
 
3238
 
    _fmt = 'Option %(name)s is not defined while interpolating "%(string)s".'
 
3238
    _fmt = 'Option %(name)s is not defined while expanding "%(string)s".'
3239
3239
 
3240
3240
    def __init__(self, name, string):
3241
3241
        self.name = name