~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-16 01:47:06 UTC
  • mfrom: (1910.19.16 smart-server)
  • Revision ID: pqm@pqm.ubuntu.com-20060916014706-93f2994bdb0c0850
(spiv,mpool,robertc) Create a RPC protocol as the building blocks for a smart server

Show diffs side-by-side

added added

removed removed

Lines of Context:
791
791
        BzrNewError.__init__(self)
792
792
 
793
793
 
 
794
class SmartProtocolError(TransportError):
 
795
    """Generic bzr smart protocol error: %(details)s"""
 
796
 
 
797
    def __init__(self, details):
 
798
        self.details = details
 
799
 
 
800
 
794
801
# A set of semi-meaningful errors which can be thrown
795
802
class TransportNotPossible(TransportError):
796
803
    """Transport operation not possible: %(msg)s %(orig_error)%"""
1169
1176
        BadInventoryFormat.__init__(self, msg=msg)
1170
1177
 
1171
1178
 
 
1179
class NoSmartServer(NotBranchError):
 
1180
    """No smart server available at %(url)s"""
 
1181
 
 
1182
    def __init__(self, url):
 
1183
        self.url = url
 
1184
 
 
1185
 
1172
1186
class UnknownSSH(BzrNewError):
1173
1187
    """Unrecognised value for BZR_SSH environment variable: %(vendor)s"""
1174
1188