- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
21 lines
615 B
Java
21 lines
615 B
Java
package com.amazonaws.transform;
|
|
|
|
import com.amazonaws.AmazonServiceException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class AbstractErrorUnmarshaller<T> implements Unmarshaller<AmazonServiceException, T> {
|
|
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);
|
|
}
|
|
}
|