package com.mojang.realmsclient.exception;

import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import org.slf4j.Logger;

@OnlyIn(Dist.CLIENT)
public class RealmsDefaultUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
   private final Logger logger;

   public RealmsDefaultUncaughtExceptionHandler(Logger p_202332_) {
      this.logger = p_202332_;
   }

   public void uncaughtException(Thread p_87768_, Throwable p_87769_) {
      this.logger.error("Caught previously unhandled exception", p_87769_);
   }
}