RetryCallException .java

com.mojang.realmsclient.exception.RetryCallException (class, 21 lines): members: DEFAULT_DELAY, delaySeconds. imports: RealmsError, EnvType, Environment.

com.mojang.realmsclient.exceptionclass21 linescommonextends RealmsServiceException597 B

API Surface (0)

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

Fields & Constants (2)

DEFAULT_DELAY
delaySeconds

Code Graph: Dependencies (2)

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

Full Source

RetryCallException.java21 lines · Minecraft 26.3 · verbatim
1
package com.mojang.realmsclient.exception;
2
3
import com.mojang.realmsclient.client.RealmsError;
4
import net.fabricmc.api.EnvType;
5
import net.fabricmc.api.Environment;
6
7
@Environment(EnvType.CLIENT)
8
public class RetryCallException extends RealmsServiceException {
9
	public static final int DEFAULT_DELAY = 5;
10
	public final int delaySeconds;
11
12
	public RetryCallException(final int delaySeconds, final int statusCode) {
13
		super(RealmsError.CustomError.retry(statusCode));
14
		if (delaySeconds >= 0 && delaySeconds <= 120) {
15
			this.delaySeconds = delaySeconds;
16
		} else {
17
			this.delaySeconds = 5;
18
		}
19
	}
20
}
21

Decompiled Minecraft 26.3 source of RetryCallException (com/mojang/realmsclient/exception/RetryCallException.java) with Mojang official mappings, stored verbatim on the site.