Skip to content

Commit 09b2e41

Browse files
authored
docs(awscore): Update JavaDoc for AwsServiceException.html#isThrottlingException() (#5190)
1 parent e46761c commit 09b2e41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/aws-core/src/main/java/software/amazon/awssdk/awscore/exception/AwsServiceException.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ public boolean isClockSkewException() {
107107
ClockSkew.getServerTime(sdkHttpResponse).orElse(null));
108108
}
109109

110+
/**
111+
* Checks if the exception is caused by throttling, considering both generic SDK and AWS-specific error code details.
112+
*
113+
* @return true if the status code is 429 or if the AWS error code indicates throttling, otherwise false.
114+
* */
110115
@Override
111116
public boolean isThrottlingException() {
112117
return super.isThrottlingException() ||

0 commit comments

Comments
 (0)