All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infomaximum.platform.utils.DefaultThreadGroup Maven / Gradle / Ivy

There is a newer version: 0.1.15p24
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy