package k5; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /* loaded from: classes2.dex */ public final class e extends RuntimeException { /* renamed from: b, reason: collision with root package name */ private static final Method f11239b; /* renamed from: a, reason: collision with root package name */ private IOException f11240a; static { Method method; try { method = Throwable.class.getDeclaredMethod("addSuppressed", Throwable.class); } catch (Exception unused) { method = null; } f11239b = method; } public e(IOException iOException) { super(iOException); this.f11240a = iOException; } private void a(IOException iOException, IOException iOException2) { Method method = f11239b; if (method != null) { try { method.invoke(iOException, iOException2); } catch (IllegalAccessException | InvocationTargetException unused) { } } } public void b(IOException iOException) { a(iOException, this.f11240a); this.f11240a = iOException; } public IOException c() { return this.f11240a; } }