mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 17:37:16 +01:00
21 lines
775 B
Java
21 lines
775 B
Java
package com.amazonaws.transform;
|
|
|
|
import com.amazonaws.AmazonServiceException;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes6.dex */
|
|
public abstract class AbstractErrorUnmarshaller<T> implements Unmarshaller<AmazonServiceException, T> {
|
|
protected final Class<? extends AmazonServiceException> exceptionClass;
|
|
|
|
public AbstractErrorUnmarshaller() {
|
|
this(AmazonServiceException.class);
|
|
}
|
|
|
|
public AmazonServiceException newException(String str) throws Exception {
|
|
return this.exceptionClass.getConstructor(String.class).newInstance(str);
|
|
}
|
|
|
|
public AbstractErrorUnmarshaller(Class<? extends AmazonServiceException> cls) {
|
|
this.exceptionClass = cls;
|
|
}
|
|
}
|