TranslatableFormatException .java

net.minecraft.network.chat.contents.TranslatableFormatException (class, 18 lines): extends IllegalArgumentException.

net.minecraft.network.chat.contentsclass18 linescommonextends IllegalArgumentException699 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (1)

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

Full Source

TranslatableFormatException.java18 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.chat.contents;
2
3
import java.util.Locale;
4
5
public class TranslatableFormatException extends IllegalArgumentException {
6
	public TranslatableFormatException(final TranslatableContents component, final String message) {
7
		super(String.format(Locale.ROOT, "Error parsing: %s: %s", component, message));
8
	}
9
10
	public TranslatableFormatException(final TranslatableContents component, final int index) {
11
		super(String.format(Locale.ROOT, "Invalid index %d requested for %s", index, component));
12
	}
13
14
	public TranslatableFormatException(final TranslatableContents component, final Throwable t) {
15
		super(String.format(Locale.ROOT, "Error while parsing: %s", component), t);
16
	}
17
}
18

Decompiled Minecraft 26.3 source of TranslatableFormatException (net/minecraft/network/chat/contents/TranslatableFormatException.java) with Mojang official mappings, stored verbatim on the site.