package kotlin.io;

import java.io.File;
import java.io.IOException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import p402.InterfaceC6540;
import p402.p411.p413.C6635;

/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public class FileSystemException extends IOException {
    public FileSystemException(File file, File file2, String str) {
        if (file == null) {
            C6635.m9824("file");
            throw null;
        }
        StringBuilder sb = new StringBuilder(file.toString());
        if (file2 != null) {
            sb.append(" -> " + file2);
        }
        if (str != null) {
            sb.append(": " + str);
        }
        String string = sb.toString();
        C6635.m9823((Object) string, "sb.toString()");
        super(string);
    }

    public /* synthetic */ FileSystemException(File file, File file2, String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
        this(file, (i & 2) != 0 ? null : file2, (i & 4) != 0 ? null : str);
    }
}
