~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: 2006-04-13 09:12:14 UTC
  • mfrom: (1654.1.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060413091214-74f373e08c6e8818
Teach `bzr init` how to init at the root of a repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
 
173
173
class PathError(BzrNewError):
174
174
    """Generic path error: %(path)r%(extra)s)"""
 
175
 
175
176
    def __init__(self, path, extra=None):
176
177
        BzrNewError.__init__(self)
177
178
        self.path = path
213
214
            self.extra = ''
214
215
 
215
216
 
216
 
class NotBranchError(BzrNewError):
 
217
class NotBranchError(PathError):
217
218
    """Not a branch: %(path)s"""
218
 
    def __init__(self, path):
219
 
        BzrNewError.__init__(self)
220
 
        self.path = path
 
219
 
 
220
 
 
221
class AlreadyBranchError(PathError):
 
222
    """Already a branch: %(path)s. Use `bzr checkout` to build a working tree."""
221
223
 
222
224
 
223
225
class NoRepositoryPresent(BzrNewError):