package com.amazonaws.transform; import com.amazonaws.AmazonServiceException; /* loaded from: classes.dex */ public abstract class AbstractErrorUnmarshaller implements Unmarshaller { public final Class exceptionClass; public AbstractErrorUnmarshaller() { this(AmazonServiceException.class); } public AbstractErrorUnmarshaller(Class cls) { this.exceptionClass = cls; } public AmazonServiceException newException(String str) { return (AmazonServiceException) this.exceptionClass.getConstructor(String.class).newInstance(str); } }