Skip to content

Commit 3b54e5c

Browse files
committed
Changelog
1 parent 0f658f4 commit 3b54e5c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "bugfix",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "",
5+
"description": "Don't use the value of AwsQueryError in json rpc/smithy-rpc-v2-cbor protocols."
6+
}

codegen/src/main/java/software/amazon/awssdk/codegen/AddExceptionShapes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ private boolean isErrorCodeOverridden(ErrorTrait errorTrait) {
8888
}
8989

9090
// JSON (ie non-rest) and smithy-rpc-v2-cbor should ignore the AwsQueryError trait
91-
// error code on the deserialized exceptions that resepect
91+
// error code on the deserialized exceptions is parsed based on the awsQueryCompatible trait in:
92+
// AwsJsonProtocolErrorUnmarshaller#getEffectiveErrorCode
9293
private boolean protocolSupportsErrorCodeOverride() {
9394
return !getProtocol().equals("json") && !getProtocol().equals("smithy-rpc-v2-cbor");
9495
}

0 commit comments

Comments
 (0)