@@ -1203,9 +1203,9 @@ namespace azure { namespace storage {
1203
1203
// / <param name="last_request_result">The last request result.</param>
1204
1204
// / <param name="next_location">The next location to retry.</param>
1205
1205
// / <param name="current_location_mode">The current location mode.</param>
1206
- // / <param name="ex_ptr ">Exception Ptr of any exception other than storage_exception</param>
1207
- retry_context (int current_retry_count, request_result last_request_result, storage_location next_location, location_mode current_location_mode, const std::exception_ptr& ex_ptr = nullptr )
1208
- : m_current_retry_count(current_retry_count), m_last_request_result(std::move(last_request_result)), m_next_location(next_location), m_current_location_mode(current_location_mode), m_unhandled_exception(ex_ptr )
1206
+ // / <param name="nonstorage_exception ">Exception Ptr of any exception other than storage_exception</param>
1207
+ retry_context (int current_retry_count, request_result last_request_result, storage_location next_location, location_mode current_location_mode, const std::exception_ptr& nonstorage_exception = nullptr )
1208
+ : m_current_retry_count(current_retry_count), m_last_request_result(std::move(last_request_result)), m_next_location(next_location), m_current_location_mode(current_location_mode), m_nonstorage_exception(nonstorage_exception )
1209
1209
{
1210
1210
}
1211
1211
@@ -1250,10 +1250,10 @@ namespace azure { namespace storage {
1250
1250
}
1251
1251
1252
1252
// / <summary>
1253
- // / Gets the exception_ptr of any unhandled exception during the request.
1253
+ // / Gets the results of the last request.
1254
1254
// / Example: WinHttp exceptions for timeout (12002)
1255
1255
// / </summary>
1256
- // / <returns>An <see cref="std::exception_ptr " /> object that represents the results of the last request.</returns>
1256
+ // / <returns>An <see cref="azure::storage::request_result " /> object that represents the results of the last request.</returns>
1257
1257
const request_result& last_request_result () const
1258
1258
{
1259
1259
return m_last_request_result;
@@ -1278,11 +1278,12 @@ namespace azure { namespace storage {
1278
1278
}
1279
1279
1280
1280
// / <summary>
1281
- // / Gets the location mode for subsequent retries.
1281
+ // / Gets the exception_ptr of any unhandled nonstorage exception during the request.
1282
+ // / Example: WinHttp exceptions for timeout (12002)
1282
1283
// / </summary>
1283
- // / <returns>The <see cref="azure::storage::location_mode " /> for subsequent retries. </returns>
1284
- const std::exception_ptr& unhandled_exception () const {
1285
- return m_unhandled_exception ;
1284
+ // / <returns>An <see cref="std::exception_ptr " /> object that represents the nonstorage exception thrown while sending request </returns>
1285
+ const std::exception_ptr& nonstorage_exception () const {
1286
+ return m_nonstorage_exception ;
1286
1287
}
1287
1288
1288
1289
private:
@@ -1291,7 +1292,7 @@ namespace azure { namespace storage {
1291
1292
request_result m_last_request_result;
1292
1293
storage_location m_next_location;
1293
1294
location_mode m_current_location_mode;
1294
- std::exception_ptr m_unhandled_exception ;
1295
+ std::exception_ptr m_nonstorage_exception ;
1295
1296
};
1296
1297
1297
1298
// / <summary>
0 commit comments