-
Notifications
You must be signed in to change notification settings - Fork 909
Update non-streaming error unmarshaller with the new mapping function #6122
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
Update non-streaming error unmarshaller with the new mapping function #6122
Conversation
.shardIterator("Invalid-Shard-Iterator") | ||
.build(); | ||
|
||
client.getRecords(request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use assertThatThrownBy instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, updated the tests.
.shardIterator("NonExistent-Shard-Iterator") | ||
.build(); | ||
|
||
client.getRecords(request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Approved previously in earlier PR : #5991 Approving, pending test changes requested by Zoe |
|
Update non-streaming error unmarshalling with the new mapping function.
Motivation and Context
This change updates the non-streaming error unmarshalling to use the same mapping function that was previously implemented for streaming operations. This change deprecates BaseAwsJsonProtocolFactory#createErrorResponseHandler(JsonOperationMetadata). We have switched all usages in generated code to the replacement, createErrorResponseHandler(JsonOperationMetadata,Function).
Modifications
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License