public class ExceptionReporter
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
ServiceManager.dispatch() after calling
Tracker.trackException(java.lang.String, boolean).
The exact message reported is determined by the ExceptionParser set
via the setExceptionParser(com.google.analytics.tracking.android.ExceptionParser) method. See StandardExceptionParser
for an example of an implementation of ExceptionParser.
All exceptions reported via this class will be reported as fatal exceptions.
Note: This version of the class is different from the stand-alone SDK. Do not merge this file with the one in the stand-alone SDK or vice-versa.
| Constructor and Description |
|---|
ExceptionReporter(Tracker tracker,
ServiceManager serviceManager,
java.lang.Thread.UncaughtExceptionHandler originalHandler,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
ExceptionParser |
getExceptionParser() |
void |
setExceptionParser(ExceptionParser exceptionParser) |
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
public ExceptionReporter(Tracker tracker, ServiceManager serviceManager, java.lang.Thread.UncaughtExceptionHandler originalHandler, Context context)
tracker - an active Tracker instanceserviceManager - an active ServiceManager instanceoriginalHandler - the current DefaultUncaughtExceptionHandlercontext - the current app contextpublic ExceptionParser getExceptionParser()
public void setExceptionParser(ExceptionParser exceptionParser)
public void uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler