mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-28 08:43:22 +01:00
31 lines
853 B
Java
31 lines
853 B
Java
package org.apache.http.util;
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Deprecated
|
|
/* loaded from: classes11.dex */
|
|
public final class ExceptionUtils {
|
|
private static final Method INIT_CAUSE_METHOD = getInitCauseMethod();
|
|
|
|
private ExceptionUtils() {
|
|
}
|
|
|
|
private static Method getInitCauseMethod() {
|
|
try {
|
|
return Throwable.class.getMethod("initCause", Throwable.class);
|
|
} catch (NoSuchMethodException unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static void initCause(Throwable th, Throwable th2) {
|
|
Method method = INIT_CAUSE_METHOD;
|
|
if (method != null) {
|
|
try {
|
|
method.invoke(th, th2);
|
|
} catch (Exception unused) {
|
|
}
|
|
}
|
|
}
|
|
}
|