FileFixException.java
net.minecraft.util.filefix.FileFixException
信息
- 全限定名:net.minecraft.util.filefix.FileFixException
- 类型:public class
- 包:net.minecraft.util.filefix
- 源码路径:src/main/java/net/minecraft/util/filefix/FileFixException.java
- 起始行号:L8
- 继承:RuntimeException
- 职责:
TODO
字段/常量
fileSystemCapabilities- 类型:
FileSystemCapabilities - 修饰符:
protected final - 源码定位:
L9 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
public FileFixException(Exception cause, FileSystemCapabilities fileSystemCapabilities) @ L11
- 构造器名:FileFixException
- 源码定位:L11
- 修饰符:public
参数:
- cause: Exception
- fileSystemCapabilities: FileSystemCapabilities
说明:
TODO
方法
下面的方法块按源码顺序生成。
protected CrashReport createCrashReport() @ L16
- 方法名:createCrashReport
- 源码定位:L16
- 返回类型:CrashReport
- 修饰符:protected
参数:
- 无
说明:
TODO
public ReportedException makeReportedException() @ L24
- 方法名:makeReportedException
- 源码定位:L24
- 返回类型:ReportedException
- 修饰符:public
参数:
- 无
说明:
TODO
代码
public class FileFixException extends RuntimeException {
protected final @Nullable FileSystemCapabilities fileSystemCapabilities;
public FileFixException(@Nullable Exception cause, @Nullable FileSystemCapabilities fileSystemCapabilities) {
super(cause);
this.fileSystemCapabilities = fileSystemCapabilities;
}
protected CrashReport createCrashReport() {
CrashReport crashReport = CrashReport.forThrowable(this, "Upgrading world failed with errors");
CrashReportCategory fsCapabilities = crashReport.addCategory("File system capabilities");
fsCapabilities.setDetail("Hard Links", this.fileSystemCapabilities == null ? "null" : this.fileSystemCapabilities.hardLinks());
fsCapabilities.setDetail("Atomic Move", this.fileSystemCapabilities == null ? "null" : this.fileSystemCapabilities.atomicMove());
return crashReport;
}
public ReportedException makeReportedException() {
return new ReportedException(this.createCrashReport());
}
}引用的其他类
-
- 引用位置:
方法调用/返回值 - 关联成员:
CrashReport.forThrowable()
- 引用位置:
-
- 引用位置:
构造调用/返回值 - 关联成员:
ReportedException()
- 引用位置:
-
- 引用位置:
参数/字段
- 引用位置: