/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2020-06-21 02:15:25 UTC
  • mto: (7490.40.23 work)
  • mto: This revision was merged to the branch mainline in revision 7517.
  • Revision ID: jelmer@jelmer.uk-20200621021525-en904vhtu6t0qcv3
Rename BzrCommandError to CommandError.

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
            'E.g. brz whoami "Your Name <name@example.com>"')
292
292
 
293
293
 
294
 
class BzrCommandError(BzrError):
 
294
class CommandError(BzrError):
295
295
    """Error from user command"""
296
296
 
297
297
    # Error from malformed user command; please avoid raising this as a
299
299
    #
300
300
    # I think it's a waste of effort to differentiate between errors that
301
301
    # are not intended to be caught anyway.  UI code need not subclass
302
 
    # BzrCommandError, and non-UI code should not throw a subclass of
303
 
    # BzrCommandError.  ADHB 20051211
 
302
    # CommandError, and non-UI code should not throw a subclass of
 
303
    # CommandError.  ADHB 20051211
 
304
 
 
305
 
 
306
# Provide the old name as backup, for the moment.
 
307
BzrCommandError = Command
304
308
 
305
309
 
306
310
class NotWriteLocked(BzrError):
2413
2417
        self.format = format
2414
2418
 
2415
2419
 
2416
 
class ChangesAlreadyStored(BzrCommandError):
 
2420
class ChangesAlreadyStored(CommandError):
2417
2421
 
2418
2422
    _fmt = ('Cannot store uncommitted changes because this branch already'
2419
2423
            ' stores uncommitted changes.')