~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2009-06-17 05:05:28 UTC
  • mto: This revision was merged to the branch mainline in revision 4454.
  • Revision ID: mbp@sourcefrog.net-20090617050528-3cohates2o6hmupm
Remove over-specific error InvalidProgressBarType.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2172
2172
    _fmt = "Cannot perform local-only commits on unbound branches."
2173
2173
 
2174
2174
 
2175
 
class InvalidProgressBarType(BzrError):
2176
 
 
2177
 
    _fmt = ("Environment variable BZR_PROGRESS_BAR='%(bar_type)s"
2178
 
            " is not a supported type Select one of: %(valid_types)s")
2179
 
 
2180
 
    def __init__(self, bar_type, valid_types):
2181
 
        BzrError.__init__(self, bar_type=bar_type, valid_types=valid_types)
2182
 
 
2183
 
 
2184
2175
class UnsupportedOperation(BzrError):
2185
2176
 
2186
2177
    _fmt = ("The method %(mname)s is not supported on"