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 be.fgov.kszbcss.rhq.websphere.config.NamedThreadFactory.java

class NamedThreadFactory implements ThreadFactory, Thread.UncaughtExceptionHandler {
    private static final Log log = LogFactory.getLog(NamedThreadFactory.class);

    private final ThreadGroup group;
    private final String namePrefix;
    private final AtomicInteger threadNumber = new AtomicInteger(1);

From source file com.espirit.moddev.cli.exception.ExceptionHandler.java

/**
 * Helper class to handle exceptions.
 *
 * @author e-Spirit AG
 */
public final class ExceptionHandler implements Thread.UncaughtExceptionHandler, CliListener {

From source file net.sf.mpaxs.api.computeHost.IRemoteHost.java

/**
 *
 * @author Nils Hoffmann
 */
public interface IRemoteHost extends Thread.UncaughtExceptionHandler {

From source file org.rhq.core.pc.util.LoggingThreadFactory.java

/**
 * This thread factory just adds a {@link UncaughtExceptionHandler} to threads it creates so that there are logs of the
 * exceptions that cause threads to die.
 *
 * <p>Use this class when providing a thread factory to threadpools.</p>
 *

From source file cc.metapro.openct.utils.CrashHandler.java

public class CrashHandler implements Thread.UncaughtExceptionHandler {

    private static final String TAG = "OpenCT";
    private static final String FILE_NAME = "openct-crash.txt";
    private Thread.UncaughtExceptionHandler mDefaultHandler;
    private OpenCT mContext;

From source file org.rhq.enterprise.server.util.LoggingThreadFactory.java

/**
 * This thread factory just adds a {@link UncaughtExceptionHandler} to threads it creates so that there are logs of the
 * exceptions that cause threads to die.
 *
 * <p>Use this class when providing a thread factory to threadpools.</p>
 *

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

/**
 *
 * @author jejkal
 */
public class CLUploadClient extends BaseUserClient
        implements ITransferTaskListener, ITransferStatusListener, Thread.UncaughtExceptionHandler {

From source file io.teak.sdk.Raven.java

public class Raven implements Thread.UncaughtExceptionHandler {
    public static final String LOG_TAG = "Teak:Raven";

    public enum Level {
        FATAL("fatal"), ERROR("error"), WARNING("warning"), INFO("info"), DEBUG("debug");

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

/**
 *
 * @author jejkal
 */
public class CLDownloadClient extends BaseUserClient
        implements ITransferTaskListener, ITransferStatusListener, Thread.UncaughtExceptionHandler {

From source file com.hwx.usbhost.usbhost.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);