RealmsServiceException .java

com.mojang.realmsclient.exception.RealmsServiceException (class, 20 lines): members: realmsError, getMessage. imports: RealmsError, EnvType, Environment.

com.mojang.realmsclient.exceptionclass20 linescommonextends Exception467 B

API Surface (1)

String getMessage()

Fields & Constants (1)

realmsError

Code Graph: Dependencies (1)

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

Full Source

RealmsServiceException.java20 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 RealmsServiceException extends Exception {
9
	public final RealmsError realmsError;
10
11
	public RealmsServiceException(final RealmsError error) {
12
		this.realmsError = error;
13
	}
14
15
	@Override
16
	public String getMessage() {
17
		return this.realmsError.logMessage();
18
	}
19
}
20

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