/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-03 02:28:57 UTC
  • mfrom: (5692 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5693.
  • Revision ID: jelmer@samba.org-20110303022857-pe8967n481mlengo
Merge bzr.dev.

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