AbortedFileFixException.java
net.minecraft.util.filefix.AbortedFileFixException
信息
- 全限定名:net.minecraft.util.filefix.AbortedFileFixException
- 类型:public final class
- 包:net.minecraft.util.filefix
- 源码路径:src/main/java/net/minecraft/util/filefix/AbortedFileFixException.java
- 起始行号:L9
- 继承:FileFixException
- 职责:
TODO
字段/常量
notRevertedMoves- 类型:
List<FileMove> - 修饰符:
private final - 源码定位:
L10 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
public AbortedFileFixException(Exception cause, List<FileMove> notRevertedMoves, FileSystemCapabilities fileSystemCapabilities) @ L12
- 构造器名:AbortedFileFixException
- 源码定位:L12
- 修饰符:public
参数:
- cause: Exception
- notRevertedMoves: List
- fileSystemCapabilities: FileSystemCapabilities
说明:
TODO
public AbortedFileFixException(Exception cause) @ L17
- 构造器名:AbortedFileFixException
- 源码定位:L17
- 修饰符:public
参数:
- cause: Exception
说明:
TODO
方法
下面的方法块按源码顺序生成。
public List<FileMove> notRevertedMoves() @ L21
- 方法名:notRevertedMoves
- 源码定位:L21
- 返回类型:List
- 修饰符:public
参数:
- 无
说明:
TODO
protected CrashReport createCrashReport() @ L25
- 方法名:createCrashReport
- 源码定位:L25
- 返回类型:CrashReport
- 修饰符:protected
参数:
- 无
说明:
TODO
代码
public final class AbortedFileFixException extends FileFixException {
private final List<FileMove> notRevertedMoves;
public AbortedFileFixException(Exception cause, List<FileMove> notRevertedMoves, @Nullable FileSystemCapabilities fileSystemCapabilities) {
super(cause, fileSystemCapabilities);
this.notRevertedMoves = notRevertedMoves;
}
public AbortedFileFixException(Exception cause) {
this(cause, List.of(), null);
}
public List<FileMove> notRevertedMoves() {
return this.notRevertedMoves;
}
@Override
protected CrashReport createCrashReport() {
CrashReport crashReport = super.createCrashReport();
CrashReportCategory failedReverts = crashReport.addCategory("Moves that failed to revert");
for (int i = 0; i < this.notRevertedMoves.size(); i++) {
FileMove notRevertedMove = this.notRevertedMoves.get(i);
failedReverts.setDetail(String.valueOf(i), notRevertedMove.from() + " -> " + notRevertedMove.to());
}
return crashReport;
}
}引用的其他类
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数/字段/返回值
- 引用位置: