com.infomaximum.platform.utils.DefaultThreadGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform Show documentation
Show all versions of platform Show documentation
Library for creating a light platform
package com.infomaximum.platform.utils;
public class DefaultThreadGroup extends ThreadGroup {
private final Thread.UncaughtExceptionHandler uncaughtExceptionHandler;
public DefaultThreadGroup(String name, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) {
super(name);
this.uncaughtExceptionHandler = uncaughtExceptionHandler;
}
@Override
public void uncaughtException(Thread t, Throwable e) {
uncaughtExceptionHandler.uncaughtException(t, e);
}
}