~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2006-02-20 22:05:28 UTC
  • mto: This revision was merged to the branch mainline in revision 1569.
  • Revision ID: mbp@sourcefrog.net-20060220220528-33bc3e992d169b4c
New DirectoryNotEmpty exception, and raise this from local and memory 
transports.

Check that some PathError is raised when trying to remove a non-empty
directory - not necessarily DirectoryNotEmpty because sftp can't detect 
it.

-- This line and the following will be ignored --

modified:
  bzrlib/errors.py
  bzrlib/tests/test_transport_implementations.py
  bzrlib/transport/__init__.py
  bzrlib/transport/memory.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
    """File exists: %(path)r%(extra)s"""
181
181
 
182
182
 
 
183
class DirectoryNotEmpty(PathError):
 
184
    """Directory not empty: %(path)r%(extra)s"""
 
185
 
 
186
 
183
187
class PermissionDenied(PathError):
184
188
    """Permission denied: %(path)r%(extra)s"""
185
189