Example usage for java.lang Thread.UncaughtExceptionHandler interface-usage

List of usage examples for java.lang Thread.UncaughtExceptionHandler interface-usage

Introduction

In this page you can find the example usage for java.lang Thread.UncaughtExceptionHandler interface-usage.

Usage

From source file CatchAllThreadExceptionHandler.java

class CatchAllThreadExceptionHandler implements Thread.UncaughtExceptionHandler {
    public void uncaughtException(Thread t, Throwable e) {
        System.out.println("Caught  Exception from  Thread:" + t.getName());
    }
}

From source file org.mule.util.concurrent.LoggingUncaughtExceptionHandler.java

public class LoggingUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    protected transient Log logger = LogFactory.getLog(getClass());

    public void uncaughtException(Thread thread, Throwable throwable) {
        logger.error(String.format("Uncaught exception in %s%n%n", thread), throwable);

From source file com.aerofs.baseline.DefaultUncaughtExceptionHandler.java

@ThreadSafe
@Singleton
final class DefaultUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    private static final Logger LOGGER = LoggerFactory.getLogger(DefaultUncaughtExceptionHandler.class);

From source file com.hwx.wheel.steeringwheel.Application.java

public class Application extends android.app.Application implements Thread.UncaughtExceptionHandler {
    @Override
    public void uncaughtException(Thread thread, Throwable throwable) {
        Intent intent = new Intent(this, ScaleActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);

From source file com.espertech.esper.metrics.codahale_metrics.metrics.util.DeathRattleExceptionHandler.java

/**
 * When a thread throws an Exception that was not caught, a DeathRattleExceptionHandler will
 * increment a counter signalling a thread has died and print out the name and stack trace of the
 * thread.
 * <p/>
 * This makes it easy to build alerts on unexpected Thread deaths and fine grained used quickens

From source file edu.mines.acmX.exhibit.module_management.module_executors.ExceptionHandler.java

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 11/20/13
 * Time: 12:30 PM
 */

From source file edu.kit.dama.transfer.client.impl.GUIDownloadClient.java

/**
 *
 * @author jejkal
 */
public class GUIDownloadClient extends BaseUserClient implements Thread.UncaughtExceptionHandler {

From source file edu.kit.dama.transfer.client.impl.GUIUploadClient.java

/**
 *
 * @author jejkal
 */
public class GUIUploadClient extends BaseUserClient implements Thread.UncaughtExceptionHandler {

From source file org.rhq.metrics.simulator.SimulatorThreadFactory.java

/**
 * @author John Sanda
 */
public class SimulatorThreadFactory implements ThreadFactory, Thread.UncaughtExceptionHandler {

    private final Log log;

From source file com.brienwheeler.lib.concurrent.UncaughtExceptionHandler.java

/**
 * A very simple exception handler that simply logs the exception.  This is the default
 * uncaught exception handler used by NamedThreadFactory.
 * 
 * @author bwheeler
 */