public class JsonErrorMessageParser extends Object
Modifier and Type | Field and Description |
---|---|
static JsonErrorMessageParser |
DEFAULT_ERROR_MESSAGE_PARSER
Standard JSON Error Message Parser that checks for JSON fields in this order: 'message',
'Message', 'errorMessage'
|
static String |
X_AMZN_ERROR_MESSAGE
x-amzn-error-message may be returned by RESTFUL services that do not send a response
payload (like in a HEAD request).
|
Constructor and Description |
---|
JsonErrorMessageParser(List<String> errorMessageJsonLocations) |
Modifier and Type | Method and Description |
---|---|
String |
parseErrorMessage(HttpResponse httpResponse,
com.fasterxml.jackson.databind.JsonNode jsonNode)
Parse the error message from the response.
|
String |
parseErrorMessage(com.fasterxml.jackson.databind.JsonNode jsonNode)
Deprecated.
|
public static final String X_AMZN_ERROR_MESSAGE
public static final JsonErrorMessageParser DEFAULT_ERROR_MESSAGE_PARSER
@Deprecated public String parseErrorMessage(com.fasterxml.jackson.databind.JsonNode jsonNode)
parseErrorMessage(HttpResponse, JsonNode)
public String parseErrorMessage(HttpResponse httpResponse, com.fasterxml.jackson.databind.JsonNode jsonNode)
Copyright © 2023. All rights reserved.