~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2008-05-07 10:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3428.
  • Revision ID: andrew.bennetts@canonical.com-20080507103300-d0vr775rbjj83xte
Make _SmartClient automatically detect and use the highest protocol version compatible with the server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1476
1476
        self.details = details
1477
1477
 
1478
1478
 
 
1479
class UnexpectedProtocolVersionMarker(TransportError):
 
1480
 
 
1481
    _fmt = "Unexpected protocol version marker: %(marker)r"
 
1482
 
 
1483
    def __init__(self, marker):
 
1484
        self.marker = marker
 
1485
 
 
1486
 
1479
1487
class UnknownSmartMethod(InternalBzrError):
1480
1488
 
1481
1489
    _fmt = "The server does not recognise the '%(verb)s' request."