FailedCleanupFileFixException.java

net.minecraft.util.filefix.FailedCleanupFileFixException

信息

  • 全限定名:net.minecraft.util.filefix.FailedCleanupFileFixException
  • 类型:public final class
  • 包:net.minecraft.util.filefix
  • 源码路径:src/main/java/net/minecraft/util/filefix/FailedCleanupFileFixException.java
  • 起始行号:L6
  • 继承:FileFixException
  • 职责:

    TODO

字段/常量

  • newWorldFolderName
    • 类型: String
    • 修饰符: private final
    • 源码定位: L7
    • 说明:

      TODO

内部类/嵌套类型

构造器

public FailedCleanupFileFixException(Exception cause, String newWorldFolderName, FileSystemCapabilities fileSystemCapabilities) @ L9

  • 构造器名:FailedCleanupFileFixException
  • 源码定位:L9
  • 修饰符:public

参数:

  • cause: Exception
  • newWorldFolderName: String
  • fileSystemCapabilities: FileSystemCapabilities

说明:

TODO

方法

下面的方法块按源码顺序生成。

protected CrashReport createCrashReport() @ L14

  • 方法名:createCrashReport
  • 源码定位:L14
  • 返回类型:CrashReport
  • 修饰符:protected

参数:

说明:

TODO

public String newWorldFolderName() @ L22

  • 方法名:newWorldFolderName
  • 源码定位:L22
  • 返回类型:String
  • 修饰符:public

参数:

说明:

TODO

代码

public final class FailedCleanupFileFixException extends FileFixException {
    private final String newWorldFolderName;
 
    public FailedCleanupFileFixException(Exception cause, String newWorldFolderName, FileSystemCapabilities fileSystemCapabilities) {
        super(cause, fileSystemCapabilities);
        this.newWorldFolderName = newWorldFolderName;
    }
 
    @Override
    protected CrashReport createCrashReport() {
        CrashReport crashReport = super.createCrashReport();
        CrashReportCategory worldUpgrade = crashReport.addCategory("World upgrade");
        worldUpgrade.setDetail("New Name", this.newWorldFolderName);
        return crashReport;
    }
 
    public String newWorldFolderName() {
        return this.newWorldFolderName;
    }
}

引用的其他类