package com.mojang.realmsclient.exception; import com.mojang.realmsclient.client.RealmsError; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; @Environment(EnvType.CLIENT) public class RealmsServiceException extends Exception { public final RealmsError realmsError; public RealmsServiceException(final RealmsError error) { this.realmsError = error; } public String getMessage() { return this.realmsError.logMessage(); } }