~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2011-02-25 08:45:27 UTC
  • mto: This revision was merged to the branch mainline in revision 5695.
  • Revision ID: andrew.bennetts@canonical.com-20110225084527-0ucp7p00d00hoqon
Add another test.

Show diffs side-by-side

added added

removed removed

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