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

com.yy.httpproxy.util.CrashHandler Maven / Gradle / Ivy

There is a newer version: 1.1.28
Show newest version
package com.yy.httpproxy.util;

/**
 * Created by xuduo on 5/23/16.
 */
public class CrashHandler implements Thread.UncaughtExceptionHandler {

    private Thread.UncaughtExceptionHandler defaultUEH;

    public CrashHandler() {
        this.defaultUEH = Thread.getDefaultUncaughtExceptionHandler();
    }

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        Log.e("CrashHandler", "push-sdk crashed", e);
        defaultUEH.uncaughtException(t, e);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy