Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates the error code returned for Errors modeled with awsQueryError trait #1333

Merged
merged 3 commits into from
Jul 14, 2021

Conversation

skotambkar
Copy link
Contributor

@skotambkar skotambkar commented Jul 9, 2021

This is a breaking change for clients using awsQueryError trait.

Note: CI will fail until aws/smithy-go#315 is merged.

This PR fixes SDK behavior to return error code modeled using awsQueryError trait, when ErrorCode() method is called on an error type.

Recommend reviewing per order of commit -

Commit 1 - Codegen changes.
Commit 2 - All generated client changes.
Commit 3 - Web identity provider test fix to not use hard coded error code.

@skotambkar skotambkar requested review from jasdel and skmcgrail and removed request for jasdel July 9, 2021 00:25
@skotambkar skotambkar merged commit a38059c into aws:main Jul 14, 2021
jrichard8 pushed a commit to jrichard8/aws-sdk-go-v2 that referenced this pull request Feb 14, 2022
… trait (aws#1333)

* java codegen change to override getErrorCode method for awsQuery protocol and use AwsQueryError trait

* generated clients and protocol test to use awsQueryError trait

* remove hard coded error code from web identity provider test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants