~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-12 17:03:28 UTC
  • mto: (1910.19.18 smart-server-readv)
  • mto: This revision was merged to the branch mainline in revision 2017.
  • Revision ID: john@arbash-meinel.com-20060912170328-beee785b9e579ac2
Force all transports to raise ShortReadvError if they can

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        PathError.__init__(self, url, extra=extra)
286
286
 
287
287
 
 
288
class ShortReadvError(PathError):
 
289
    """readv() could not read the %(length)s bytes at %(offset)s for %(path)s%(extra)s"""
 
290
 
 
291
    is_user_error = False
 
292
 
 
293
    def __init__(self, path, offset, length, extra=None):
 
294
        PathError.__init__(self, path, extra=extra)
 
295
        self.offset = offset
 
296
        self.length = length
 
297
 
 
298
 
288
299
class PathNotChild(BzrNewError):
289
300
    """Path %(path)r is not a child of path %(base)r%(extra)s"""
290
301