/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: Canonical.com Patch Queue Manager
  • Date: 2007-08-31 02:05:10 UTC
  • mfrom: (2670.3.8 vf-data-stream)
  • Revision ID: pqm@pqm.ubuntu.com-20070831020510-emrlta5dk6ta95zp
(Andrew Bennetts) Add get_data_stream, insert_data_stream and get_format_signature to KnitVersionedFile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1301
1301
    internal_error = True
1302
1302
 
1303
1303
 
 
1304
class KnitCorrupt(KnitError):
 
1305
 
 
1306
    _fmt = "Knit %(filename)s corrupt: %(how)s"
 
1307
 
 
1308
    def __init__(self, filename, how):
 
1309
        KnitError.__init__(self)
 
1310
        self.filename = filename
 
1311
        self.how = how
 
1312
 
 
1313
 
 
1314
class KnitDataStreamIncompatible(KnitError):
 
1315
 
 
1316
    _fmt = "Cannot insert knit data stream of format \"%(stream_format)s\" into knit of format \"%(target_format)s\"."
 
1317
 
 
1318
    def __init__(self, stream_format, target_format):
 
1319
        self.stream_format = stream_format
 
1320
        self.target_format = target_format
 
1321
        
 
1322
 
1304
1323
class KnitHeaderError(KnitError):
1305
1324
 
1306
1325
    _fmt = 'Knit header error: %(badline)r unexpected for file "%(filename)s".'
1311
1330
        self.filename = filename
1312
1331
 
1313
1332
 
1314
 
class KnitCorrupt(KnitError):
1315
 
 
1316
 
    _fmt = "Knit %(filename)s corrupt: %(how)s"
1317
 
 
1318
 
    def __init__(self, filename, how):
1319
 
        KnitError.__init__(self)
1320
 
        self.filename = filename
1321
 
        self.how = how
1322
 
 
1323
 
 
1324
1333
class KnitIndexUnknownMethod(KnitError):
1325
1334
    """Raised when we don't understand the storage method.
1326
1335