minecraft_25w45a_unobfuscated/net/minecraft/DefaultUncaughtExceptionHandlerWithName.java
2025-11-24 22:52:51 +03:00

26 lines
585 B
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.slf4j.Logger
*/
package net.minecraft;
import org.slf4j.Logger;
public class DefaultUncaughtExceptionHandlerWithName
implements Thread.UncaughtExceptionHandler {
private final Logger logger;
public DefaultUncaughtExceptionHandlerWithName(Logger logger) {
this.logger = logger;
}
@Override
public void uncaughtException(Thread t, Throwable e) {
this.logger.error("Caught previously unhandled exception :");
this.logger.error(t.getName(), e);
}
}