access-analyzer: upon throttling, AwsServiceException is thrown, instead of ThrottlingException
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 51
Description
### Describe the bug
i am using sdk for access-analyzer, 2.33.0
when i hit throttling, i see that i get `AwsServiceException` , instead of `ThrottlingException`.
in ThrottlingException there is a method (according to the docs) `retryAfterSeconds()` so I would like to use it - to know how much time to "sleep". but all i get is AwsServiceException, and when i call `isThrottlingException()` i get "true".
### Regression Issue
- [ ] Select this option if this issue appears to be a regression.
### Expected Behavior
i would expect the SDL to throw ThrottlingException.
### Current Behavior
i see that the SDK throws AwsServiceException
### Reproduction Steps
call the SDK many times till u hit throttling error.
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### AWS Java SDK version used
2.33.0
### JDK version used
"21.0.6" 2025-01-21 LTS
### Operating System and version
MAC
Contributor guide
Assessment
This issue has not been assessed yet.