26 lines
585 B
Java
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);
|
|
}
|
|
}
|
|
|