/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: Canonical.com Patch Queue Manager
  • Date: 2007-07-05 00:34:00 UTC
  • mfrom: (2052.6.5 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070705003400-d5p03g67nxpohfox
(robertc) Make read() errors on directories raise ReadError not IO errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
349
349
 
350
350
# XXX: Should be unified with TransportError; they seem to represent the
351
351
# same thing
 
352
# RBC 20060929: I think that unifiying with TransportError would be a mistake
 
353
# - this is finer than a TransportError - and more useful as such. It 
 
354
# differentiates between 'transport has failed' and 'operation on a transport
 
355
# has failed.'
352
356
class PathError(BzrError):
353
357
    
354
358
    _fmt = "Generic path error: %(path)r%(extra)s)"
457
461
        PathError.__init__(self, url, extra=extra)
458
462
 
459
463
 
 
464
class ReadError(PathError):
 
465
    
 
466
    _fmt = """Error reading from %(path)r."""
 
467
 
 
468
 
460
469
class ShortReadvError(PathError):
461
470
 
462
471
    _fmt = ("readv() read %(actual)s bytes rather than %(length)s bytes"