package org.ws.lifebacklog.util;
import java.lang.Thread.UncaughtExceptionHandler;
/**
* Catch fatal exception. After it application must be relaunched.
*
* @author sergey.valuy
* */
public class AppExceptionHandler implements UncaughtExceptionHandler {
@Override
public void uncaughtException(Thread thread, Throwable throwable) {
Logger.e(getClass(), thread.getName() + " | " + throwable.getMessage(), throwable);
}
}
|