~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-03 06:02:49 UTC
  • mfrom: (5672.1.7 branch-revs-to-fetch)
  • Revision ID: pqm@pqm.ubuntu.com-20110303060249-l2zou9i59742nrqf
(spiv) Add Branch.heads_to_fetch API and HPSS request. (Andrew Bennetts)

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