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.InvalidSNSDestinationException;
23
24 @Generated("com.amazonaws:aws-java-sdk-code-generator")
25 public class InvalidSNSDestinationExceptionUnmarshaller extends StandardErrorUnmarshaller {
26
27 public InvalidSNSDestinationExceptionUnmarshaller() {
28 super(InvalidSNSDestinationException.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("InvalidSNSDestination"))
37 return null;
38
39 InvalidSNSDestinationException e = (InvalidSNSDestinationException) super.unmarshall(node);
40 e.setConfigurationSetName(XpathUtils.asString(getErrorPropertyPath("ConfigurationSetName"), node));
41 e.setEventDestinationName(XpathUtils.asString(getErrorPropertyPath("EventDestinationName"), node));
42
43 return e;
44 }
45 }
46