Search in sources :

Example 1 with InvalidContactFlowModuleException

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;
}
Also used : InvalidContactFlowModuleException(com.amazonaws.services.connect.model.InvalidContactFlowModuleException) ListUnmarshaller(com.amazonaws.transform.ListUnmarshaller) StringReader(java.io.StringReader) JsonUnmarshallerContext(com.amazonaws.transform.JsonUnmarshallerContext) AwsJsonReader(com.amazonaws.util.json.AwsJsonReader)

Aggregations

InvalidContactFlowModuleException (com.amazonaws.services.connect.model.InvalidContactFlowModuleException)1 JsonUnmarshallerContext (com.amazonaws.transform.JsonUnmarshallerContext)1 ListUnmarshaller (com.amazonaws.transform.ListUnmarshaller)1 AwsJsonReader (com.amazonaws.util.json.AwsJsonReader)1 StringReader (java.io.StringReader)1