/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

Changes in response to review: re-use _base_curl, rather than keeping a seperate _post_curl object; add docstring to test_http.RecordingServer, set is_user_error on some new exceptions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
class ReadingCompleted(BzrNewError):
274
274
    """The MediumRequest '%(request)s' has already had finish_reading called upon it - the request has been completed and no more data may be read."""
275
275
 
 
276
    is_user_error = False
 
277
 
276
278
    def __init__(self, request):
277
279
        BzrNewError.__init__(self)
278
280
        self.request = request
932
934
class WritingCompleted(BzrNewError):
933
935
    """The MediumRequest '%(request)s' has already had finish_writing called upon it - accept bytes may not be called anymore."""
934
936
 
 
937
    is_user_error = False
 
938
 
935
939
    def __init__(self, request):
936
940
        BzrNewError.__init__(self)
937
941
        self.request = request
940
944
class WritingNotComplete(BzrNewError):
941
945
    """The MediumRequest '%(request)s' has not has finish_writing called upon it - until the write phase is complete no data may be read."""
942
946
 
 
947
    is_user_error = False
 
948
 
943
949
    def __init__(self, request):
944
950
        BzrNewError.__init__(self)
945
951
        self.request = request