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, unmarshall
newException
public GlacierErrorUnmarshaller()
protected GlacierErrorUnmarshaller(Class<? extends AmazonServiceException> exceptionClass)
public String parseErrorCode(JSONObject json) throws Exception
parseErrorCode
in class JsonErrorUnmarshaller
Exception
Copyright © 2016. All rights reserved.