Code example for Thread.UncaughtExceptionHandler

Methods: uncaughtException

0
			try { 
				reportException(thread, ex, null, false);
			} catch (Exception e) {
				Log.e(TAG, "Error while reporting exception", e);
			} 
			subject.uncaughtException(thread, ex);
		} 
 
	} 
 
	/** 
	 * Sends an error report. 
	 *  
	 * @param thread The thread where the exception occurred (e.g. {@link java.lang.Thread#currentThread()}) 
	 * @param ex The exception 
	 */ 
	public void reportException(Thread thread, Throwable ex) {
		reportException(thread, ex, null, true);
	}