Package com.amazonaws.internal.http
Class JsonErrorMessageParser
java.lang.Object
com.amazonaws.internal.http.JsonErrorMessageParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonErrorMessageParser
Standard JSON Error Message Parser that checks for JSON fields in this order: 'message', 'Message', 'errorMessage' -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseErrorMessage
(com.fasterxml.jackson.databind.JsonNode jsonNode) Parse the error message from the response.
-
Field Details
-
DEFAULT_ERROR_MESSAGE_PARSER
Standard JSON Error Message Parser that checks for JSON fields in this order: 'message', 'Message', 'errorMessage'
-
-
Constructor Details
-
JsonErrorMessageParser
- 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.- Returns:
- Error Code of exceptional response or null if it can't be determined
-