Skip to content

Commit

Permalink
fix modeled retryable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Dec 1, 2023
1 parent f5fdbfa commit e064e4e
Show file tree
Hide file tree
Showing 375 changed files with 4,318 additions and 4,253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == DRY_RUN_OPERATION_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::DRY_RUN_OPERATION), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::DRY_RUN_OPERATION), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == UNAUTHORIZED_OPERATION_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::UNAUTHORIZED_OPERATION), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::UNAUTHORIZED_OPERATION), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == POLICY_ERROR_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::POLICY_ERROR), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::POLICY_ERROR), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_INPUT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::INVALID_INPUT), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::INVALID_INPUT), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == HOME_REGION_NOT_SET_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::HOME_REGION_NOT_SET), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(MigrationHubErrors::HOME_REGION_NOT_SET), RetryableType::NOT_RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::CONFLICT), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::CONFLICT), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::SERVICE_QUOTA_EXCEEDED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::SERVICE_QUOTA_EXCEEDED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INTERNAL_SERVER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::INTERNAL_SERVER), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
}
else if (hashCode == INVALID_PARAMETER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::INVALID_PARAMETER), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::INVALID_PARAMETER), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == UNPROCESSABLE_ENTITY_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::UNPROCESSABLE_ENTITY), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccessAnalyzerErrors::UNPROCESSABLE_ENTITY), RetryableType::RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
6 changes: 3 additions & 3 deletions generated/src/aws-cpp-sdk-account/source/AccountErrors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccountErrors::CONFLICT), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccountErrors::CONFLICT), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INTERNAL_SERVER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccountErrors::INTERNAL_SERVER), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccountErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
}
else if (hashCode == TOO_MANY_REQUESTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccountErrors::TOO_MANY_REQUESTS), true);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AccountErrors::TOO_MANY_REQUESTS), RetryableType::RETRYABLE_THROTTLING);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
36 changes: 18 additions & 18 deletions generated/src/aws-cpp-sdk-acm-pca/source/ACMPCAErrors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,75 +44,75 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == REQUEST_ALREADY_PROCESSED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::REQUEST_ALREADY_PROCESSED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::REQUEST_ALREADY_PROCESSED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == PERMISSION_ALREADY_EXISTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::PERMISSION_ALREADY_EXISTS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::PERMISSION_ALREADY_EXISTS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == REQUEST_IN_PROGRESS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::REQUEST_IN_PROGRESS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::REQUEST_IN_PROGRESS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == LIMIT_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::LIMIT_EXCEEDED), true);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE);
}
else if (hashCode == REQUEST_FAILED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::REQUEST_FAILED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::REQUEST_FAILED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == CONCURRENT_MODIFICATION_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::CONCURRENT_MODIFICATION), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::CONCURRENT_MODIFICATION), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_TAG_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_TAG), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_TAG), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == CERTIFICATE_MISMATCH_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::CERTIFICATE_MISMATCH), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::CERTIFICATE_MISMATCH), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_STATE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_STATE), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_STATE), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == LOCKOUT_PREVENTED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::LOCKOUT_PREVENTED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::LOCKOUT_PREVENTED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_NEXT_TOKEN_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_NEXT_TOKEN), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_NEXT_TOKEN), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_ARGS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_ARGS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_ARGS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == MALFORMED_CERTIFICATE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::MALFORMED_CERTIFICATE), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::MALFORMED_CERTIFICATE), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_ARN_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_ARN), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_ARN), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == TOO_MANY_TAGS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::TOO_MANY_TAGS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::TOO_MANY_TAGS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == MALFORMED_C_S_R_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::MALFORMED_C_S_R), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::MALFORMED_C_S_R), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_POLICY_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_POLICY), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_POLICY), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_REQUEST_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_REQUEST), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMPCAErrors::INVALID_REQUEST), RetryableType::NOT_RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
24 changes: 12 additions & 12 deletions generated/src/aws-cpp-sdk-acm/source/ACMErrors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,51 +38,51 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::CONFLICT), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::CONFLICT), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_ARGS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_ARGS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_ARGS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_DOMAIN_VALIDATION_OPTIONS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_DOMAIN_VALIDATION_OPTIONS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_DOMAIN_VALIDATION_OPTIONS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == REQUEST_IN_PROGRESS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::REQUEST_IN_PROGRESS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::REQUEST_IN_PROGRESS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_ARN_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_ARN), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_ARN), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_PARAMETER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_PARAMETER), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_PARAMETER), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == LIMIT_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::LIMIT_EXCEEDED), true);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE);
}
else if (hashCode == TOO_MANY_TAGS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::TOO_MANY_TAGS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::TOO_MANY_TAGS), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_TAG_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_TAG), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_TAG), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == TAG_POLICY_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::TAG_POLICY), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::TAG_POLICY), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == RESOURCE_IN_USE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::RESOURCE_IN_USE), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::RESOURCE_IN_USE), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_STATE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_STATE), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(ACMErrors::INVALID_STATE), RetryableType::NOT_RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == LIMIT_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AlexaForBusinessErrors::LIMIT_EXCEEDED), true);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AlexaForBusinessErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE);
}
else if (hashCode == ALREADY_EXISTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AlexaForBusinessErrors::ALREADY_EXISTS), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AlexaForBusinessErrors::ALREADY_EXISTS), RetryableType::NOT_RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(PrometheusServiceErrors::CONFLICT), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(PrometheusServiceErrors::CONFLICT), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(PrometheusServiceErrors::SERVICE_QUOTA_EXCEEDED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(PrometheusServiceErrors::SERVICE_QUOTA_EXCEEDED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INTERNAL_SERVER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(PrometheusServiceErrors::INTERNAL_SERVER), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(PrometheusServiceErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
10 changes: 5 additions & 5 deletions generated/src/aws-cpp-sdk-amplify/source/AmplifyErrors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == NOT_FOUND_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::NOT_FOUND), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::NOT_FOUND), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == UNAUTHORIZED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::UNAUTHORIZED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::UNAUTHORIZED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == LIMIT_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::LIMIT_EXCEEDED), true);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE);
}
else if (hashCode == DEPENDENT_SERVICE_FAILURE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::DEPENDENT_SERVICE_FAILURE), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::DEPENDENT_SERVICE_FAILURE), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == BAD_REQUEST_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::BAD_REQUEST), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::BAD_REQUEST), RetryableType::NOT_RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == NOT_FOUND_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::NOT_FOUND), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::NOT_FOUND), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == GATEWAY_TIMEOUT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::GATEWAY_TIMEOUT), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::GATEWAY_TIMEOUT), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == TOO_MANY_REQUESTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::TOO_MANY_REQUESTS), true);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::TOO_MANY_REQUESTS), RetryableType::RETRYABLE);
}
else if (hashCode == BAD_REQUEST_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::BAD_REQUEST), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::BAD_REQUEST), RetryableType::NOT_RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)

if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::SERVICE_QUOTA_EXCEEDED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::SERVICE_QUOTA_EXCEEDED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INTERNAL_SERVER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::INTERNAL_SERVER), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == INVALID_PARAMETER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::INVALID_PARAMETER), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::INVALID_PARAMETER), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == UNAUTHORIZED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::UNAUTHORIZED), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::UNAUTHORIZED), RetryableType::NOT_RETRYABLE);
}
else if (hashCode == RESOURCE_CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::RESOURCE_CONFLICT), false);
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::RESOURCE_CONFLICT), RetryableType::NOT_RETRYABLE);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
Expand Down
Loading

0 comments on commit e064e4e

Please sign in to comment.