1
13 package com.amazonaws.services.simpleemail.model.transform;
14
15 import org.w3c.dom.Node;
16 import javax.annotation.Generated;
17
18 import com.amazonaws.AmazonServiceException;
19 import com.amazonaws.util.XpathUtils;
20 import com.amazonaws.transform.StandardErrorUnmarshaller;
21
22 import com.amazonaws.services.simpleemail.model.InvalidRenderingParameterException;
23
24 @Generated("com.amazonaws:aws-java-sdk-code-generator")
25 public class InvalidRenderingParameterExceptionUnmarshaller extends StandardErrorUnmarshaller {
26
27 public InvalidRenderingParameterExceptionUnmarshaller() {
28 super(InvalidRenderingParameterException.class);
29 }
30
31 @Override
32 public AmazonServiceException unmarshall(Node node) throws Exception {
33
34
35 String errorCode = parseErrorCode(node);
36 if (errorCode == null || !errorCode.equals("InvalidRenderingParameter"))
37 return null;
38
39 InvalidRenderingParameterException e = (InvalidRenderingParameterException) super.unmarshall(node);
40 e.setTemplateName(XpathUtils.asString(getErrorPropertyPath("TemplateName"), node));
41
42 return e;
43 }
44 }
45