use of com.amazonaws.services.connect.model.InvalidContactFlowModuleException in project aws-sdk-android by aws-amplify.
the class InvalidContactFlowModuleExceptionUnmarshaller method unmarshall.
@Override
public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception {
InvalidContactFlowModuleException e = (InvalidContactFlowModuleException) super.unmarshall(error);
e.setErrorCode("InvalidContactFlowModuleException");
final AwsJsonReader jsonReader = JsonUtils.getJsonReader(new StringReader(error.get("Problems")));
e.setProblems(new ListUnmarshaller<ProblemDetail>(ProblemDetailJsonUnmarshaller.getInstance()).unmarshall(new JsonUnmarshallerContext(jsonReader)));
return e;
}
Aggregations