Class AwsJsonErrorMessageParser
java.lang.Object
software.amazon.awssdk.protocols.json.internal.unmarshall.AwsJsonErrorMessageParser
- All Implemented Interfaces:
ErrorMessageParser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAwsJsonErrorMessageParser
(SdkJsonErrorMessageParser errorMessageJsonLocations) -
Method Summary
Modifier and TypeMethodDescriptionparseErrorMessage
(SdkHttpFullResponse httpResponse, JsonNode jsonNode) Parse the error message from the response.
-
Field Details
-
DEFAULT_ERROR_MESSAGE_PARSER
-
-
Constructor Details
-
AwsJsonErrorMessageParser
- Parameters:
errorMessageJsonLocations
- JSON field locations where the parser will attempt to extract the error message from.
-
-
Method Details
-
parseErrorMessage
Parse the error message from the response.- Specified by:
parseErrorMessage
in interfaceErrorMessageParser
- Returns:
- Error Code of exceptional response or null if it can't be determined
-