~bzr-pqm/bzr/2.2

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-28 01:54:43 UTC
  • mfrom: (4797.85.12 2.2-feature-flags)
  • Revision ID: pqm@pqm.ubuntu.com-20120328015443-eyed372ro7kc7yl6
(jelmer) Add basic support for feature flags. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3194
3194
    def __init__(self, branch_url):
3195
3195
        self.branch_url = branch_url
3196
3196
 
 
3197
 
 
3198
class MissingFeature(BzrError):
 
3199
 
 
3200
    _fmt = ("Missing feature %(feature)s not provided by this "
 
3201
            "version of Bazaar or any plugin.")
 
3202
 
 
3203
    def __init__(self, feature):
 
3204
        self.feature = feature
 
3205
 
 
3206
 
 
3207
class ParseFormatError(BzrError):
 
3208
 
 
3209
    _fmt = "Parse error on line %(lineno)d of format name: %(line)s"
 
3210
 
 
3211
    def __init__(self, lineno, line, text):
 
3212
        BzrError.__init__(self)
 
3213
        self.lineno = lineno
 
3214
        self.line = line
 
3215
        self.text = text