ExhaustedAttemptsException .java

net.minecraft.gametest.framework.ExhaustedAttemptsException (class): strings: " attempts. Required successes: ", "Not enough successes: ", " out of ".

net.minecraft.gametest.frameworkclass19 linescommonextends Throwable468 B

API Surface (0)

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

String literals (4)

"Not enough successes: "
" out of "
" attempts. Required successes: "
". max attempts: "

Code Graph: Dependencies (1)

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

Full Source

ExhaustedAttemptsException.java19 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.gametest.framework;
2
3
public class ExhaustedAttemptsException extends Throwable {
4
	public ExhaustedAttemptsException(final int attempts, final int successes, final GameTestInfo testInfo) {
5
		super(
6
			"Not enough successes: "
7
				+ successes
8
				+ " out of "
9
				+ attempts
10
				+ " attempts. Required successes: "
11
				+ testInfo.requiredSuccesses()
12
				+ ". max attempts: "
13
				+ testInfo.maxAttempts()
14
				+ ".",
15
			testInfo.getError()
16
		);
17
	}
18
}
19

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