|
11 | 11 | #include <aws/core/client/AWSError.h> |
12 | 12 | #include <aws/core/client/CoreErrors.h> |
13 | 13 | #include <aws/core/utils/cbor/CborValue.h> |
| 14 | +#include <aws/core/internal/RetryStrategyImpl.h> |
14 | 15 |
|
15 | 16 | using namespace Aws::Utils::Logging; |
16 | 17 | using namespace Aws::Utils::Json; |
@@ -104,6 +105,7 @@ AWSError<CoreErrors> JsonErrorMarshaller::BuildAWSError(const std::shared_ptr<Ht |
104 | 105 |
|
105 | 106 | error.SetResponseHeaders(httpResponse->GetHeaders()); |
106 | 107 | error.SetResponseCode(httpResponse->GetResponseCode()); |
| 108 | + Aws::Client::Internal::ClassifyUnmodeledTooManyRequests(error); |
107 | 109 | error.SetRemoteHostIpAddress(httpResponse->GetOriginatingRequest().GetResolvedRemoteHost()); |
108 | 110 | AWS_LOGSTREAM_ERROR(AWS_ERROR_MARSHALLER_LOG_TAG, error); |
109 | 111 | return error; |
@@ -197,6 +199,7 @@ AWSError<CoreErrors> XmlErrorMarshaller::BuildAWSError(const std::shared_ptr<Htt |
197 | 199 |
|
198 | 200 | error.SetResponseHeaders(httpResponse->GetHeaders()); |
199 | 201 | error.SetResponseCode(httpResponse->GetResponseCode()); |
| 202 | + Aws::Client::Internal::ClassifyUnmodeledTooManyRequests(error); |
200 | 203 | error.SetRemoteHostIpAddress(httpResponse->GetOriginatingRequest().GetResolvedRemoteHost()); |
201 | 204 | AWS_LOGSTREAM_ERROR(AWS_ERROR_MARSHALLER_LOG_TAG, error); |
202 | 205 | return error; |
@@ -522,6 +525,7 @@ AWSError<CoreErrors> RpcV2ErrorMarshaller::BuildAWSError(const std::shared_ptr<H |
522 | 525 |
|
523 | 526 | error.SetResponseHeaders(httpResponse->GetHeaders()); |
524 | 527 | error.SetResponseCode(httpResponse->GetResponseCode()); |
| 528 | + Aws::Client::Internal::ClassifyUnmodeledTooManyRequests(error); |
525 | 529 | error.SetRemoteHostIpAddress(httpResponse->GetOriginatingRequest().GetResolvedRemoteHost()); |
526 | 530 | AWS_LOGSTREAM_ERROR(AWS_ERROR_MARSHALLER_LOG_TAG, error); |
527 | 531 | return error; |
|
0 commit comments