~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-08-12 07:57:38 UTC
  • mfrom: (6059.1.5 invalid-config-value)
  • Revision ID: pqm@pqm.ubuntu.com-20110812075738-z6kjnvy20806946j
(vila) Allow option to require a warning or error when an invalid value is
 found in a config file. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1802
1802
        self.errors = '\n'.join(e.msg for e in errors)
1803
1803
 
1804
1804
 
 
1805
class ConfigOptionValueError(BzrError):
 
1806
 
 
1807
    _fmt = """Bad value "%(value)s" for option "%(name)s"."""
 
1808
 
 
1809
    def __init__(self, name, value):
 
1810
        BzrError.__init__(self, name=name, value=value)
 
1811
 
 
1812
 
1805
1813
class NoEmailInUsername(BzrError):
1806
1814
 
1807
1815
    _fmt = "%(username)r does not seem to contain a reasonable email address"