File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
codegen/src/main/java/software/amazon/awssdk/codegen Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments