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