/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

separate out the client medium from the client encoding protocol for the smart server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
    """Directory not empty: %(path)r%(extra)s"""
267
267
 
268
268
 
 
269
class ReadingCompleted(BzrNewError):
 
270
    """The MediumRequest '%(request)s' has already had finish_reading called upon it - the request has been completed and no more data may be read."""
 
271
 
 
272
    def __init__(self, request):
 
273
        BzrNewError.__init__(self)
 
274
        self.request = request
 
275
 
 
276
 
269
277
class ResourceBusy(PathError):
270
278
    """Device or resource busy: %(path)r%(extra)s"""
271
279
 
791
799
 
792
800
class NoSuchExportFormat(BzrNewError):
793
801
    """Export format %(format)r not supported"""
 
802
 
794
803
    def __init__(self, format):
795
804
        BzrNewError.__init__(self)
796
805
        self.format = format
797
806
 
798
807
 
 
808
 
 
809
class TooManyConcurrentRequests(BzrNewError):
 
810
    """The medium '%(medium)s' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the current request that is open."""
 
811
 
 
812
    def __init__(self, medium):
 
813
        BzrNewError.__init__(self)
 
814
        self.medium = medium
 
815
 
 
816
 
799
817
class TransportError(BzrNewError):
800
818
    """Transport error: %(msg)s %(orig_error)s"""
801
819
 
892
910
                          " unchanged." % tree.basedir)
893
911
 
894
912
 
 
913
class WritingCompleted(BzrNewError):
 
914
    """The MediumRequest '%(request)s' has already had finish_writing called upon it - accept bytes may not be called anymore."""
 
915
 
 
916
    def __init__(self, request):
 
917
        BzrNewError.__init__(self)
 
918
        self.request = request
 
919
 
 
920
 
 
921
class WritingNotComplete(BzrNewError):
 
922
    """The MediumRequest '%(request)s' has not has finish_writing called upon it - until the write phase is complete no data may be read."""
 
923
 
 
924
    def __init__(self, request):
 
925
        BzrNewError.__init__(self)
 
926
        self.request = request
 
927
 
 
928
 
895
929
class CantReprocessAndShowBase(BzrNewError):
896
930
    """Can't reprocess and show base.
897
931
Reprocessing obscures relationship of conflicting lines to base."""