"""The MediumRequest '%(request)s' has already had finish_reading called upon it - the request has been completed and no more data may be read."""
291
292
is_user_error = False
293
294
def __init__(self, request):
295
BzrNewError.__init__(self)
296
self.request = request
297
298
289
299
class ResourceBusy(PathError):
290
300
"""Device or resource busy: %(path)r%(extra)s"""
291
301
818
828
819
829
class NoSuchExportFormat(BzrNewError):
820
830
"""Export format %(format)r not supported"""
831
821
832
def __init__(self, format):
822
833
BzrNewError.__init__(self)
823
834
self.format = format
824
835
825
836
837
838
class TooManyConcurrentRequests(BzrNewError):
839
"""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."""
840
841
def __init__(self, medium):
842
BzrNewError.__init__(self)
843
self.medium = medium
844
845
826
846
class TransportError(BzrNewError):
827
847
"""Transport error: %(msg)s %(orig_error)s"""
828
848
927
947
" unchanged." % tree.basedir)
928
948
929
949
950
class WritingCompleted(BzrNewError):
951
"""The MediumRequest '%(request)s' has already had finish_writing called upon it - accept bytes may not be called anymore."""
952
953
is_user_error = False
954
955
def __init__(self, request):
956
BzrNewError.__init__(self)
957
self.request = request
958
959
960
class WritingNotComplete(BzrNewError):
961
"""The MediumRequest '%(request)s' has not has finish_writing called upon it - until the write phase is complete no data may be read."""
962
963
is_user_error = False
964
965
def __init__(self, request):
966
BzrNewError.__init__(self)
967
self.request = request
968
969
930
970
class CantReprocessAndShowBase(BzrNewError):
931
971
"""Can't reprocess and show base.
932
972
Reprocessing obscures relationship of conflicting lines to base."""
947
987
self.filename = filename
948
988
949
989
990
class MediumNotConnected(BzrNewError):
991
"""The medium '%(medium)s' is not connected."""
992
993
def __init__(self, medium):
994
BzrNewError.__init__(self)
995
self.medium = medium
996
997
950
998
class MustUseDecorated(Exception):
951
999
"""A decorating function has requested its original command be used.
952
1000
988
1036
"""Tree transform is malformed %(conflicts)r"""
989
1037
990
1038
1039
class NoFinalPath(BzrNewError):
1040
"""No final name for trans_id %(trans_id)r
1041
file-id: %(file_id)r"
1042
root trans-id: %(root_trans_id)r
1043
"""
1044
1045
def __init__(self, trans_id, transform):
1046
self.trans_id = trans_id
1047
self.file_id = transform.final_file_id(trans_id)
1048
self.root_trans_id = transform.root
1049
1050
991
1051
class BzrBadParameter(BzrNewError):
992
1052
"""A bad parameter : %(param)s is not usable.
993
1053
1240
1300
BadInventoryFormat.__init__(self, msg=msg)
1241
1301
1242
1302
1303
class NoSmartMedium(BzrNewError):
1304
"""The transport '%(transport)s' cannot tunnel the smart protocol."""