AbortedFileFixException .java

net.minecraft.util.filefix.AbortedFileFixException (class, 38 lines): members: notRevertedMoves, createCrashReport. strings: "Moves that failed to revert".

net.minecraft.util.filefixclass38 linescommonextends FileFixException1.2 KB

API Surface (2)

List<FileMove> notRevertedMoves()
CrashReport createCrashReport()

Fields & Constants (1)

notRevertedMoves

String literals (1)

"Moves that failed to revert"

Code Graph: Dependencies (5)

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

Full Source

AbortedFileFixException.java38 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.filefix;
2
3
import java.util.List;
4
import net.minecraft.CrashReport;
5
import net.minecraft.CrashReportCategory;
6
import net.minecraft.util.filefix.virtualfilesystem.FileMove;
7
import org.jspecify.annotations.Nullable;
8
9
public final class AbortedFileFixException extends FileFixException {
10
	private final List<FileMove> notRevertedMoves;
11
12
	public AbortedFileFixException(final Exception cause, final List<FileMove> notRevertedMoves, final @Nullable FileSystemCapabilities fileSystemCapabilities) {
13
		super(cause, fileSystemCapabilities);
14
		this.notRevertedMoves = notRevertedMoves;
15
	}
16
17
	public AbortedFileFixException(final Exception cause) {
18
		this(cause, List.of(), null);
19
	}
20
21
	public List<FileMove> notRevertedMoves() {
22
		return this.notRevertedMoves;
23
	}
24
25
	@Override
26
	protected CrashReport createCrashReport() {
27
		CrashReport crashReport = super.createCrashReport();
28
		CrashReportCategory failedReverts = crashReport.addCategory("Moves that failed to revert");
29
30
		for (int i = 0; i < this.notRevertedMoves.size(); i++) {
31
			FileMove notRevertedMove = this.notRevertedMoves.get(i);
32
			failedReverts.setDetail(String.valueOf(i), notRevertedMove.from() + " -> " + notRevertedMove.to());
33
		}
34
35
		return crashReport;
36
	}
37
}
38

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