FileFixException .java

net.minecraft.util.filefix.FileFixException (class): members: fileSystemCapabilities, makeReportedException, createCrashReport. strings: "Atomic Move".

net.minecraft.util.filefixclass28 linescommonextends RuntimeException1.1 KB

API Surface (2)

CrashReport createCrashReport()
ReportedException makeReportedException()

Fields & Constants (1)

fileSystemCapabilities

String literals (4)

"Upgrading world failed with errors"
"File system capabilities"
"Hard Links"
"Atomic Move"

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

FileFixException.java28 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.filefix;
2
3
import net.minecraft.CrashReport;
4
import net.minecraft.CrashReportCategory;
5
import net.minecraft.ReportedException;
6
import org.jspecify.annotations.Nullable;
7
8
public class FileFixException extends RuntimeException {
9
	protected final @Nullable FileSystemCapabilities fileSystemCapabilities;
10
11
	public FileFixException(final @Nullable Exception cause, final @Nullable FileSystemCapabilities fileSystemCapabilities) {
12
		super(cause);
13
		this.fileSystemCapabilities = fileSystemCapabilities;
14
	}
15
16
	protected CrashReport createCrashReport() {
17
		CrashReport crashReport = CrashReport.forThrowable(this, "Upgrading world failed with errors");
18
		CrashReportCategory fsCapabilities = crashReport.addCategory("File system capabilities");
19
		fsCapabilities.setDetail("Hard Links", this.fileSystemCapabilities == null ? "null" : this.fileSystemCapabilities.hardLinks());
20
		fsCapabilities.setDetail("Atomic Move", this.fileSystemCapabilities == null ? "null" : this.fileSystemCapabilities.atomicMove());
21
		return crashReport;
22
	}
23
24
	public ReportedException makeReportedException() {
25
		return new ReportedException(this.createCrashReport());
26
	}
27
}
28

Decompiled Minecraft 26.3 source of FileFixException (net/minecraft/util/filefix/FileFixException.java) with Mojang official mappings, stored verbatim on the site.