package m1;

import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;

/* JADX INFO: renamed from: m1.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0632d extends IOException {

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

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

    public Throwable a() {
        return this.f5407b;
    }

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

    public C0632d(Throwable th) {
        this.f5407b = th;
    }

    public C0632d(String str, Throwable th) {
        super(str);
        this.f5407b = th;
    }
}
