RetryContext class

Definition

Contains the request and response information that can be used to determine whether and how to retry. This context is stored across retries and may be used to store other information relevant to the retry strategy.

RetryContext()
Inheritance
builtins.object
RetryContext

Variables

request
azure.storage.common._http.HTTPRequest
The request sent to the storage service.
response
azure.storage.common._http.HTTPResponse
The response returned by the storage service.
location_mode
LocationMode
The location the request was sent to.
exception
Exception
The exception that just occurred. The type could either be AzureException (for HTTP errors), or other Exception types from lower layers, which are kept unwrapped for easier processing.
is_emulated
bool
Whether retry is targeting the emulator. The default value is False.
body_position
int
The initial position of the body stream. It is useful when retries happen and we need to rewind the stream.