Class AwsJsonErrorMessageParser
- java.lang.Object
- 
- software.amazon.awssdk.protocols.json.internal.unmarshall.AwsJsonErrorMessageParser
 
- 
- All Implemented Interfaces:
- ErrorMessageParser
 
 public final class AwsJsonErrorMessageParser extends Object implements ErrorMessageParser 
- 
- 
Field SummaryFields Modifier and Type Field Description static ErrorMessageParserDEFAULT_ERROR_MESSAGE_PARSER
 - 
Constructor SummaryConstructors Constructor Description AwsJsonErrorMessageParser(SdkJsonErrorMessageParser errorMessageJsonLocations)
 - 
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 ErrorMessageParser DEFAULT_ERROR_MESSAGE_PARSER 
 
- 
 - 
Constructor Detail- 
AwsJsonErrorMessageParserpublic AwsJsonErrorMessageParser(SdkJsonErrorMessageParser errorMessageJsonLocations) - Parameters:
- errorMessageJsonLocations- JSON field locations where the parser will attempt to extract the error message from.
 
 
- 
 - 
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
 
 
- 
 
-