package f1;

import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import k1.z0;
import l1.AbstractC0621d;

/* JADX INFO: renamed from: f1.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0468e extends IOException implements InterfaceC0467d, z0 {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private int f3919b;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private Throwable f3920g;

    C0468e(int i2) {
        super(a(i2));
        this.f3919b = i2;
    }

    static String a(int i2) {
        int length = InterfaceC0467d.f3917c.length;
        int i3 = 0;
        while (length >= i3) {
            int i4 = (i3 + length) / 2;
            int i5 = InterfaceC0467d.f3917c[i4];
            if (i2 > i5) {
                i3 = i4 + 1;
            } else {
                if (i2 >= i5) {
                    return InterfaceC0467d.f3918d[i4];
                }
                length = i4 - 1;
            }
        }
        return "0x" + AbstractC0621d.c(i2, 8);
    }

    @Override // java.lang.Throwable
    public String toString() {
        if (this.f3920g == null) {
            return super.toString();
        }
        StringWriter stringWriter = new StringWriter();
        this.f3920g.printStackTrace(new PrintWriter(stringWriter));
        return super.toString() + "\n" + stringWriter;
    }

    public C0468e(String str) {
        super(str);
    }
}
