/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: Robert Collins
  • Date: 2007-07-20 00:58:41 UTC
  • mfrom: (2633 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2634.
  • Revision ID: robertc@robertcollins.net-20070720005841-xnu6um6vx0n41h0k
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
    _fmt = "Error in command line options"
335
335
 
336
336
 
 
337
class BadIndexFormatSignature(BzrError):
 
338
 
 
339
    _fmt = "%(value)s is not an index of type %(_type)s."
 
340
 
 
341
    def __init__(self, value, _type):
 
342
        BzrError.__init__(self)
 
343
        self.value = value
 
344
        self._type = _type
 
345
 
 
346
 
 
347
class BadIndexData(BzrError):
 
348
 
 
349
    _fmt = "Error in data for index %(value)s."
 
350
 
 
351
    def __init__(self, value):
 
352
        BzrError.__init__(self)
 
353
        self.value = value
 
354
 
 
355
 
 
356
class BadIndexDuplicateKey(BzrError):
 
357
 
 
358
    _fmt = "The key '%(key)s' is already in index '%(index)s'."
 
359
 
 
360
    def __init__(self, key, index):
 
361
        BzrError.__init__(self)
 
362
        self.key = key
 
363
        self.index = index
 
364
 
 
365
 
 
366
class BadIndexKey(BzrError):
 
367
 
 
368
    _fmt = "The key '%(key)s' is not a valid key."
 
369
 
 
370
    def __init__(self, key):
 
371
        BzrError.__init__(self)
 
372
        self.key = key
 
373
 
 
374
 
 
375
class BadIndexOptions(BzrError):
 
376
 
 
377
    _fmt = "Could not parse options for index %(value)s."
 
378
 
 
379
    def __init__(self, value):
 
380
        BzrError.__init__(self)
 
381
        self.value = value
 
382
 
 
383
 
 
384
class BadIndexValue(BzrError):
 
385
 
 
386
    _fmt = "The value '%(value)s' is not a valid value."
 
387
 
 
388
    def __init__(self, value):
 
389
        BzrError.__init__(self)
 
390
        self.value = value
 
391
 
 
392
 
337
393
class BadOptionValue(BzrError):
338
394
 
339
395
    _fmt = """Bad value "%(value)s" for option "%(name)s"."""
1207
1263
        self.file_id = file_id
1208
1264
 
1209
1265
 
 
1266
class VersionedFileInvalidChecksum(VersionedFileError):
 
1267
 
 
1268
    _fmt = "Text did not match its checksum: %(message)s"
 
1269
 
 
1270
 
1210
1271
class KnitError(BzrError):
1211
1272
    
1212
1273
    _fmt = "Knit error"
1555
1616
        self.text_revision = text_revision
1556
1617
        self.file_id = file_id
1557
1618
 
1558
 
 
1559
1619
class DuplicateFileId(BzrError):
1560
1620
 
1561
1621
    _fmt = "File id {%(file_id)s} already exists in inventory as %(entry)s"
2059
2119
        " branch location."
2060
2120
 
2061
2121
 
 
2122
class IllegalMergeDirectivePayload(BzrError):
 
2123
    """A merge directive contained something other than a patch or bundle"""
 
2124
 
 
2125
    _fmt = "Bad merge directive payload %(start)r"
 
2126
 
 
2127
    def __init__(self, start):
 
2128
        BzrError(self)
 
2129
        self.start = start
 
2130
 
 
2131
 
 
2132
class PatchVerificationFailed(BzrError):
 
2133
    """A patch from a merge directive could not be verified"""
 
2134
 
 
2135
    _fmt = "Preview patch does not match requested changes."
 
2136
 
 
2137
 
2062
2138
class PatchMissing(BzrError):
2063
2139
    """Raise a patch type was specified but no patch supplied"""
2064
2140