~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2008-10-28 19:39:57 UTC
  • mfrom: (3804 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3805.
  • Revision ID: john@arbash-meinel.com-20081028193957-zg2eygq5cgz2bnpu
Merge bzr.dev 3804

Show diffs side-by-side

added added

removed removed

Lines of Context:
1424
1424
        self.how = how
1425
1425
 
1426
1426
 
 
1427
class SHA1KnitCorrupt(KnitCorrupt):
 
1428
 
 
1429
    _fmt = ("Knit %(filename)s corrupt: sha-1 of reconstructed text does not "
 
1430
        "match expected sha-1. key %(key)s expected sha %(expected)s actual "
 
1431
        "sha %(actual)s")
 
1432
 
 
1433
    def __init__(self, filename, actual, expected, key, content):
 
1434
        KnitError.__init__(self)
 
1435
        self.filename = filename
 
1436
        self.actual = actual
 
1437
        self.expected = expected
 
1438
        self.key = key
 
1439
        self.content = content
 
1440
 
 
1441
 
1427
1442
class KnitDataStreamIncompatible(KnitError):
1428
1443
    # Not raised anymore, as we can convert data streams.  In future we may
1429
1444
    # need it again for more exotic cases, so we're keeping it around for now.