Package com.amazonaws.internal.http
Class JsonErrorMessageParser
- java.lang.Object
-
- com.amazonaws.internal.http.JsonErrorMessageParser
-
public class JsonErrorMessageParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static JsonErrorMessageParser
DEFAULT_ERROR_MESSAGE_PARSER
Standard JSON Error Message Parser that checks for JSON fields in this order: 'message', 'Message', 'errorMessage'
-
Constructor Summary
Constructors Constructor Description JsonErrorMessageParser(List<String> errorMessageJsonLocations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
parseErrorMessage(com.fasterxml.jackson.databind.JsonNode jsonNode)
Parse the error message from the response.
-
-
-
Field Detail
-
DEFAULT_ERROR_MESSAGE_PARSER
public static final JsonErrorMessageParser 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(com.fasterxml.jackson.databind.JsonNode jsonNode)
Parse the error message from the response.- Returns:
- Error Code of exceptional response or null if it can't be determined
-
-