/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: John Arbash Meinel
  • Date: 2008-10-25 01:42:48 UTC
  • mto: (3860.1.1 153786-retry)
  • mto: This revision was merged to the branch mainline in revision 3865.
  • Revision ID: john@arbash-meinel.com-20081025014248-zhy0bg5nf238vc29
The first function for KnitVersionedFiles can now retry on request.

_get_record_map() now includes logic to retry operations if they fail due to a
missing .pack() file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1493
1493
 
1494
1494
    internal_error = True
1495
1495
 
1496
 
    _fmt = ("Pack files have changed, reload and retry.")
 
1496
    _fmt = ("Pack files have changed, reload and retry. %(orig_error)s")
1497
1497
 
1498
1498
    def __init__(self, reload_occurred, exc_info):
1499
1499
        """create a new RestartWithNewPacks error.
1509
1509
        BzrError.__init__(self)
1510
1510
        self.reload_occurred = reload_occurred
1511
1511
        self.exc_info = exc_info
 
1512
        self.orig_error = exc_info[1]
1512
1513
        # TODO: The global error handler should probably treat this by
1513
1514
        #       raising/printing the original exception with a bit about
1514
1515
        #       RetryWithNewPacks also not being caught