/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 bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2005-10-30 14:56:26 UTC
  • Revision ID: robertc@robertcollins.net-20051030145626-2f57bd49824dd1d7
Add a --create-prefix to the new push command.

As part of this, some option parsing errors will raise 'BzrOptionError',
allowing granular detection for decorating commands. (Robert Collins).

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
 
130
130
class BzrCommandError(BzrError):
131
131
    # Error from malformed user command
 
132
    # This is being misused as a generic exception
 
133
    # pleae subclass. RBC 20051030
132
134
    def __str__(self):
133
135
        return self.args[0]
134
136
 
 
137
 
 
138
class BzrOptionError(BzrCommandError):
 
139
    """Some missing or otherwise incorrect option was supplied."""
 
140
 
 
141
    
135
142
class StrictCommitFailed(Exception):
136
143
    """Commit refused because there are unknowns in the tree."""
137
144