Code example for Thread.UncaughtExceptionHandler

Methods: uncaughtException

0
 
			//debug(e); 
			warn("reporting", Log.getStackTraceString(e));
			 
			if(eh != null){
				eh.uncaughtException(Thread.currentThread(), e);
			} 
			 
		}catch(Exception ex){
			ex.printStackTrace();
		} 
		 
	} 
	 
	private static UncaughtExceptionHandler eh;
	public static void setExceptionHandler(UncaughtExceptionHandler handler){
		eh = handler;
	} 
	 
	private static Map<String, Long> times = new HashMap<String, Long>();
Experience pair programming with AI  Get Codota for Java