/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

  • Committer: Aaron Bentley
  • Date: 2006-09-19 16:26:17 UTC
  • mfrom: (2022 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2162.
  • Revision ID: abentley@panoramicfeedback.com-20060919162617-e6099afb05b6a9ef
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
                   self.__dict__, str(e))
139
139
 
140
140
 
 
141
class AlreadyBuilding(BzrNewError):
 
142
    """The tree builder is already building a tree."""
 
143
 
 
144
 
141
145
class BzrCheckError(BzrNewError):
142
146
    """Internal check failed: %(message)s"""
143
147
 
192
196
        self.base = base
193
197
 
194
198
 
 
199
class NotBuilding(BzrNewError):
 
200
    """Not currently building a tree."""
 
201
 
 
202
 
195
203
class NotLocalUrl(BzrNewError):
196
204
    """%(url)s is not a local path."""
197
205
    
286
294
        PathError.__init__(self, url, extra=extra)
287
295
 
288
296
 
 
297
class ShortReadvError(PathError):
 
298
    """readv() read %(actual)s bytes rather than %(length)s bytes at %(offset)s for %(path)s%(extra)s"""
 
299
 
 
300
    is_user_error = False
 
301
 
 
302
    def __init__(self, path, offset, length, actual, extra=None):
 
303
        PathError.__init__(self, path, extra=extra)
 
304
        self.offset = offset
 
305
        self.length = length
 
306
        self.actual = actual
 
307
 
 
308
 
289
309
class PathNotChild(BzrNewError):
290
310
    """Path %(path)r is not a child of path %(base)r%(extra)s"""
291
311
 
791
811
        BzrNewError.__init__(self)
792
812
 
793
813
 
 
814
class SmartProtocolError(TransportError):
 
815
    """Generic bzr smart protocol error: %(details)s"""
 
816
 
 
817
    def __init__(self, details):
 
818
        self.details = details
 
819
 
 
820
 
794
821
# A set of semi-meaningful errors which can be thrown
795
822
class TransportNotPossible(TransportError):
796
823
    """Transport operation not possible: %(msg)s %(orig_error)%"""
1169
1196
        BadInventoryFormat.__init__(self, msg=msg)
1170
1197
 
1171
1198
 
 
1199
class NoSmartServer(NotBranchError):
 
1200
    """No smart server available at %(url)s"""
 
1201
 
 
1202
    def __init__(self, url):
 
1203
        self.url = url
 
1204
 
 
1205
 
1172
1206
class UnknownSSH(BzrNewError):
1173
1207
    """Unrecognised value for BZR_SSH environment variable: %(vendor)s"""
1174
1208