Class JsonErrorCodeParser
- java.lang.Object
-
- software.amazon.awssdk.protocols.json.internal.unmarshall.JsonErrorCodeParser
-
- All Implemented Interfaces:
ErrorCodeParser
public class JsonErrorCodeParser extends Object implements ErrorCodeParser
-
-
Field Summary
Fields Modifier and Type Field Description static String
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.
-
Constructor Summary
Constructors Constructor Description JsonErrorCodeParser(String errorCodeFieldName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
parseErrorCode(SdkHttpFullResponse response, JsonContent jsonContent)
Parse the error code from the response.
-
-
-
Field Detail
-
X_AMZN_ERROR_TYPE
public static final String 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:
- Constant Field Values
-
-
Constructor Detail
-
JsonErrorCodeParser
public JsonErrorCodeParser(String errorCodeFieldName)
-
-
Method Detail
-
parseErrorCode
public String parseErrorCode(SdkHttpFullResponse response, JsonContent jsonContent)
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
-
-