"""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
276
is_user_error = False
277
278
def __init__(self, request):
279
BzrNewError.__init__(self)
280
self.request = request
281
282
273
283
class ResourceBusy(PathError):
274
284
"""Device or resource busy: %(path)r%(extra)s"""
275
285
802
812
803
813
class NoSuchExportFormat(BzrNewError):
804
814
"""Export format %(format)r not supported"""
815
805
816
def __init__(self, format):
806
817
BzrNewError.__init__(self)
807
818
self.format = format
808
819
809
820
821
822
class TooManyConcurrentRequests(BzrNewError):
823
"""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."""
824
825
def __init__(self, medium):
826
BzrNewError.__init__(self)
827
self.medium = medium
828
829
810
830
class TransportError(BzrNewError):
811
831
"""Transport error: %(msg)s %(orig_error)s"""
812
832
911
931
" unchanged." % tree.basedir)
912
932
913
933
934
class WritingCompleted(BzrNewError):
935
"""The MediumRequest '%(request)s' has already had finish_writing called upon it - accept bytes may not be called anymore."""
936
937
is_user_error = False
938
939
def __init__(self, request):
940
BzrNewError.__init__(self)
941
self.request = request
942
943
944
class WritingNotComplete(BzrNewError):
945
"""The MediumRequest '%(request)s' has not has finish_writing called upon it - until the write phase is complete no data may be read."""
946
947
is_user_error = False
948
949
def __init__(self, request):
950
BzrNewError.__init__(self)
951
self.request = request
952
953
914
954
class CantReprocessAndShowBase(BzrNewError):
915
955
"""Can't reprocess and show base.
916
956
Reprocessing obscures relationship of conflicting lines to base."""
931
971
self.filename = filename
932
972
933
973
974
class MediumNotConnected(BzrNewError):
975
"""The medium '%(medium)s' is not connected."""
976
977
def __init__(self, medium):
978
BzrNewError.__init__(self)
979
self.medium = medium
980
981
934
982
class MustUseDecorated(Exception):
935
983
"""A decorating function has requested its original command be used.
936
984
1224
1272
BadInventoryFormat.__init__(self, msg=msg)
1225
1273
1226
1274
1275
class NoSmartMedium(BzrNewError):
1276
"""The transport '%(transport)s' cannot tunnel the smart protocol."""