public class GlacierErrorUnmarshaller extends JsonErrorUnmarshaller
exceptionClass| Modifier | Constructor and Description |
|---|---|
|
GlacierErrorUnmarshaller() |
protected |
GlacierErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass) |
| Modifier and Type | Method and Description |
|---|---|
String |
parseErrorCode(JSONObject json)
Different from other JSON services that return error code in the response content,
Glacier uses "code" as the JSON field key, instead of the commonly-used "__type".
|
match, parseMember, parseMessage, unmarshallnewExceptionpublic GlacierErrorUnmarshaller()
protected GlacierErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass)
public String parseErrorCode(JSONObject json) throws Exception
parseErrorCode in class JsonErrorUnmarshallerExceptionCopyright © 2016. All rights reserved.