
package com.amazonaws.services.redshift.model.transform;

import org.w3c.dom.Node;

import com.amazonaws.AmazonServiceException;
import com.amazonaws.util.XpathUtils;
import com.amazonaws.transform.StandardErrorUnmarshaller;

import com.amazonaws.services.redshift.model.HsmConfigurationNotFoundException;

public class HsmConfigurationNotFoundExceptionUnmarshaller extends StandardErrorUnmarshaller {

    public HsmConfigurationNotFoundExceptionUnmarshaller() {
        super(HsmConfigurationNotFoundException.class);
    }

    public AmazonServiceException unmarshall(Node node) throws Exception {
        // Bail out if this isn't the right error code that this
        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("HsmConfigurationNotFoundFault"))
            return null;

        HsmConfigurationNotFoundException e = (HsmConfigurationNotFoundException)super.unmarshall(node);
        
        return e;
    }
}
    