Skip to content

access-analyzer: upon throttling, AwsServiceException is thrown, instead of ThrottlingException #6621

@OhadR

Description

@OhadR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions