Class SdkJsonErrorMessageParser
- java.lang.Object
 - 
- software.amazon.awssdk.protocols.json.internal.unmarshall.SdkJsonErrorMessageParser
 
 
- 
- All Implemented Interfaces:
 ErrorMessageParser
public class SdkJsonErrorMessageParser extends Object implements ErrorMessageParser
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static SdkJsonErrorMessageParserDEFAULT_ERROR_MESSAGE_PARSERStandard JSON Error Message Parser that checks for JSON fields in this order: 'message', 'Message', 'errorMessage' 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringparseErrorMessage(SdkHttpFullResponse httpResponse, JsonNode jsonNode)Parse the error message from the response. 
 - 
 
- 
- 
Field Detail
- 
DEFAULT_ERROR_MESSAGE_PARSER
public static final SdkJsonErrorMessageParser DEFAULT_ERROR_MESSAGE_PARSER
Standard JSON Error Message Parser that checks for JSON fields in this order: 'message', 'Message', 'errorMessage' 
 - 
 
- 
Method Detail
- 
parseErrorMessage
public String parseErrorMessage(SdkHttpFullResponse httpResponse, JsonNode jsonNode)
Parse the error message from the response.- Specified by:
 parseErrorMessagein interfaceErrorMessageParser- Returns:
 - Error Code of exceptional response or null if it can't be determined
 
 
 - 
 
 -