AppExceptionHandler.java :  » Log » life-backlog » org » ws » lifebacklog » util » Android Open Source

Android Open Source » Log » life backlog 
life backlog » org » ws » lifebacklog » util » AppExceptionHandler.java
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);

  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.