~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
947
947
    # original exception is available as e.original_error
948
948
    #
949
949
    # New code should prefer to raise specific subclasses
950
 
    def __init__(self, message):
951
 
        # Python 2.5 uses a slot for StandardError.message,
952
 
        # so use a different variable name.  We now work around this in
953
 
        # BzrError.__str__, but this member name is kept for compatability.
954
 
        self.msg = message
 
950
    def __init__(self, msg):
 
951
        self.msg = msg
955
952
 
956
953
 
957
954
class LockActive(LockError):
1378
1375
 
1379
1376
class WeaveParentMismatch(WeaveError):
1380
1377
 
1381
 
    _fmt = "Parents are mismatched between two revisions. %(message)s"
 
1378
    _fmt = "Parents are mismatched between two revisions. %(msg)s"
1382
1379
 
1383
1380
 
1384
1381
class WeaveInvalidChecksum(WeaveError):
1385
1382
 
1386
 
    _fmt = "Text did not match it's checksum: %(message)s"
 
1383
    _fmt = "Text did not match it's checksum: %(msg)s"
1387
1384
 
1388
1385
 
1389
1386
class WeaveTextDiffers(WeaveError):
1437
1434
 
1438
1435
class VersionedFileInvalidChecksum(VersionedFileError):
1439
1436
 
1440
 
    _fmt = "Text did not match its checksum: %(message)s"
 
1437
    _fmt = "Text did not match its checksum: %(msg)s"
1441
1438
 
1442
1439
 
1443
1440
class KnitError(InternalBzrError):