UnknownGameTestException .java

net.minecraft.gametest.framework.UnknownGameTestException (class): members: getDescription, reason. strings: "test.error.unknown". imports: Component.

net.minecraft.gametest.frameworkclass18 linescommonextends GameTestException440 B

API Surface (1)

Component getDescription()

Fields & Constants (1)

reason

String literals (1)

"test.error.unknown"

Code Graph: Dependencies (2)

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

Full Source

UnknownGameTestException.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.gametest.framework;
2
3
import net.minecraft.network.chat.Component;
4
5
public class UnknownGameTestException extends GameTestException {
6
	private final Throwable reason;
7
8
	public UnknownGameTestException(final Throwable reason) {
9
		super(reason.getMessage());
10
		this.reason = reason;
11
	}
12
13
	@Override
14
	public Component getDescription() {
15
		return Component.translatable("test.error.unknown", this.reason.getMessage());
16
	}
17
}
18

Decompiled Minecraft 26.3 source of UnknownGameTestException (net/minecraft/gametest/framework/UnknownGameTestException.java) with Mojang official mappings, stored verbatim on the site.