public class JsonErrorCodeParser extends Object implements ErrorCodeParser
Modifier and Type | Field and Description |
---|---|
static String |
X_AMZN_ERROR_TYPE
Services using AWS JSON 1.1 protocol with HTTP binding send the error code information in the
response headers, instead of the content.
|
Constructor and Description |
---|
JsonErrorCodeParser(String errorCodeFieldName) |
Modifier and Type | Method and Description |
---|---|
String |
parseErrorCode(SdkHttpFullResponse response,
JsonContent jsonContent)
Parse the error code from the response.
|
public static final String X_AMZN_ERROR_TYPE
public JsonErrorCodeParser(String errorCodeFieldName)
public String parseErrorCode(SdkHttpFullResponse response, JsonContent jsonContent)
parseErrorCode
in interface ErrorCodeParser
Copyright © 2019. All rights reserved.