RetryContext Class

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.

Inheritance
builtins.object
RetryContext

Constructor

RetryContext()

Variables

Name Description
request
<xref:azure.storage.common._http.HTTPRequest>

The request sent to the storage service.

response
<xref:azure.storage.common._http.HTTPResponse>

The response returned by the storage service.

location_mode

The location the request was sent to.

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

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.