~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-10 23:00:44 UTC
  • mto: This revision was merged to the branch mainline in revision 1854.
  • Revision ID: john@arbash-meinel.com-20060710230044-8bbfddd920940ffe
new env var 'BZR_PROGRESS_BAR' to select the exact progress type

Show diffs side-by-side

added added

removed removed

Lines of Context:
965
965
    """A nested progress bar was not 'finished' correctly."""
966
966
 
967
967
 
 
968
class InvalidProgressBarType(BzrNewError):
 
969
    """Environment variable BZR_PROGRESS_BAR='%(bar_type)s is not a supported type
 
970
Select one of: %(valid_types)s"""
 
971
 
 
972
    def __init__(self, bar_type, valid_types):
 
973
        BzrNewError.__init__(self, bar_type=bar_type, valid_types=valid_types)
 
974
 
 
975
 
968
976
class UnsupportedOperation(BzrNewError):
969
977
    """The method %(mname)s is not supported on objects of type %(tname)s."""
970
978
    def __init__(self, method, method_self):