~bzr-pqm/bzr/2.3

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-28 00:42:46 UTC
  • mfrom: (5665.1.2 2.3-feature-flags)
  • Revision ID: pqm@pqm.ubuntu.com-20120328004246-kx0vzifaqi142b8i
(jelmer) Add basic support for feature flags. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3232
3232
    def __init__(self, branch_url):
3233
3233
        self.branch_url = branch_url
3234
3234
 
 
3235
 
 
3236
class MissingFeature(BzrError):
 
3237
 
 
3238
    _fmt = ("Missing feature %(feature)s not provided by this "
 
3239
            "version of Bazaar or any plugin.")
 
3240
 
 
3241
    def __init__(self, feature):
 
3242
        self.feature = feature
 
3243
 
 
3244
 
 
3245
class ParseFormatError(BzrError):
 
3246
 
 
3247
    _fmt = "Parse error on line %(lineno)d of format name: %(line)s"
 
3248
 
 
3249
    def __init__(self, lineno, line, text):
 
3250
        BzrError.__init__(self)
 
3251
        self.lineno = lineno
 
3252
        self.line = line
 
3253
        self.text = text