b.e.RetryWithNewPacks(BzrError) : class documentation

Part of bzrlib.errors View In Hierarchy

Known subclasses: bzrlib.errors.RetryAutopack, bzrlib.repofmt.pack_repo.RetryPackOperations

Raised when we realize that the packs on disk have changed.

This is meant as more of a signaling exception, to trap between where a local error occurred and the code that can actually handle the error and code that can retry appropriately.

Method __init__ create a new RetryWithNewPacks error.

Inherited from BzrError:

Method __unicode__ Undocumented
Method __str__ Undocumented
Method __repr__ Undocumented
Method __eq__ Undocumented
Method _format Undocumented
Method _get_format_string Return format string for this exception or None
def __init__(self, context, reload_occurred, exc_info):
create a new RetryWithNewPacks error.
Parametersreload_occurredSet to True if we know that the packs have already been reloaded, and we are failing because of an in-memory cache miss. If set to True then we will ignore if a reload says nothing has changed, because we assume it has already reloaded. If False, then a reload with nothing changed will force an error.
exc_infoThe original exception traceback, so if there is a problem we can raise the original error (value from sys.exc_info())
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.