RemoteRpcErrorException .java

net.minecraft.server.jsonrpc.methods.RemoteRpcErrorException (class, 23 lines): extends RuntimeException. members: error. imports: JsonObject, JsonElement.

net.minecraft.server.jsonrpc.methodsclass23 linesserverextends RuntimeException482 B

API Surface (0)

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

Fields & Constants (2)

id
error

Full Source

RemoteRpcErrorException.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.server.jsonrpc.methods;
2
3
import com.google.gson.JsonElement;
4
import com.google.gson.JsonObject;
5
6
public class RemoteRpcErrorException extends RuntimeException {
7
	private final JsonElement id;
8
	private final JsonObject error;
9
10
	public RemoteRpcErrorException(final JsonElement id, final JsonObject error) {
11
		this.id = id;
12
		this.error = error;
13
	}
14
15
	private JsonObject getError() {
16
		return this.error;
17
	}
18
19
	private JsonElement getId() {
20
		return this.id;
21
	}
22
}
23

Decompiled Minecraft 26.3 source of RemoteRpcErrorException (net/minecraft/server/jsonrpc/methods/RemoteRpcErrorException.java) with Mojang official mappings, stored verbatim on the site.