jimu-decompiled/sources/com/liulishuo/filedownloader/exception/FileDownloadOutOfSpaceException.java
2025-05-13 19:24:51 +02:00

42 lines
1.4 KiB
Java

package com.liulishuo.filedownloader.exception;
import android.annotation.TargetApi;
import com.liulishuo.filedownloader.util.FileDownloadUtils;
import java.io.IOException;
/* loaded from: classes.dex */
public class FileDownloadOutOfSpaceException extends IOException {
private long breakpointBytes;
private long freeSpaceBytes;
private long requiredSpaceBytes;
@TargetApi(9)
public FileDownloadOutOfSpaceException(long j, long j2, long j3, Throwable th) {
super(FileDownloadUtils.a("The file is too large to store, breakpoint in bytes: %d, required space in bytes: %d, but free space in bytes: %d", Long.valueOf(j3), Long.valueOf(j2), Long.valueOf(j)), th);
init(j, j2, j3);
}
private void init(long j, long j2, long j3) {
this.freeSpaceBytes = j;
this.requiredSpaceBytes = j2;
this.breakpointBytes = j3;
}
public long getBreakpointBytes() {
return this.breakpointBytes;
}
public long getFreeSpaceBytes() {
return this.freeSpaceBytes;
}
public long getRequiredSpaceBytes() {
return this.requiredSpaceBytes;
}
public FileDownloadOutOfSpaceException(long j, long j2, long j3) {
super(FileDownloadUtils.a("The file is too large to store, breakpoint in bytes: %d, required space in bytes: %d, but free space in bytes: %d", Long.valueOf(j3), Long.valueOf(j2), Long.valueOf(j)));
init(j, j2, j3);
}
}