Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user