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 SummaryFields Modifier and Type Field Description static StringX_AMZN_ERROR_TYPEServices using AWS JSON 1.1 protocol with HTTP binding send the error code information in the response headers, instead of the content.
 - 
Constructor SummaryConstructors Constructor Description JsonErrorCodeParser(String errorCodeFieldName)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringparseErrorCode(SdkHttpFullResponse response, JsonContent jsonContent)Parse the error code from the response.
 
- 
- 
- 
Field Detail- 
X_AMZN_ERROR_TYPEpublic 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- 
JsonErrorCodeParserpublic JsonErrorCodeParser(String errorCodeFieldName) 
 
- 
 - 
Method Detail- 
parseErrorCodepublic String parseErrorCode(SdkHttpFullResponse response, JsonContent jsonContent) Parse the error code from the response.- Specified by:
- parseErrorCodein interface- ErrorCodeParser
- Returns:
- Error Code of exceptional response or null if it can't be determined
 
 
- 
 
-