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 SummaryFields 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 SummaryAll 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_PARSERpublic 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- 
parseErrorMessagepublic String parseErrorMessage(SdkHttpFullResponse httpResponse, JsonNode jsonNode) Parse the error message from the response.- Specified by:
- parseErrorMessagein interface- ErrorMessageParser
- Returns:
- Error Code of exceptional response or null if it can't be determined
 
 
- 
 
-