Class JsonErrorCodeParser
java.lang.Object
software.amazon.awssdk.protocols.json.internal.unmarshall.JsonErrorCodeParser
- All Implemented Interfaces:
ErrorCodeParser
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Services using AWS JSON 1.1 protocol with HTTP binding send the error code information in the response headers, instead of the content. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseErrorCode
(SdkHttpFullResponse response, JsonContent jsonContent) Parse the error code from the response.
-
Field Details
-
X_AMZN_ERROR_TYPE
Services using AWS JSON 1.1 protocol with HTTP binding send the error code information in the response headers, instead of the content. Package private for tests.- See Also:
-
-
Constructor Details
-
JsonErrorCodeParser
-
-
Method Details
-
parseErrorCode
Parse the error code from the response.- Specified by:
parseErrorCode
in interfaceErrorCodeParser
- Returns:
- Error Code of exceptional response or null if it can't be determined
-