/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

Starting factoring out the smart server client "medium" from the protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
912
912
        self.filename = filename
913
913
 
914
914
 
 
915
class MediumNotConnected(BzrNewError):
 
916
    """The medium '%(medium)s' is not connected."""
 
917
 
 
918
    def __init__(self, medium):
 
919
        BzrNewError.__init__(self)
 
920
        self.medium = medium
 
921
 
 
922
 
915
923
class MustUseDecorated(Exception):
916
924
    """A decorating function has requested its original command be used.
917
925
    
1196
1204
        BadInventoryFormat.__init__(self, msg=msg)
1197
1205
 
1198
1206
 
 
1207
class NoSmartMedium(BzrNewError):
 
1208
    """The transport '%(transport)s' cannot tunnel the smart protocol."""
 
1209
 
 
1210
    def __init__(self, transport):
 
1211
        BzrNewError.__init__(self)
 
1212
        self.transport = transport
 
1213
 
 
1214
 
1199
1215
class NoSmartServer(NotBranchError):
1200
1216
    """No smart server available at %(url)s"""
1201
1217