ExceptionParser

public interfaceExceptionParser
Known Indirect Subclasses

This interface is responsible for parsing aThrowableand providing a short, meaningful description to report to Google Analytics.

This class can be used in conjugation with theExceptionReporter.


UncaughtExceptionHandler myHandler = new ExceptionReporter(
myTracker, // Currently usedTracker.
Thread.getDefaultUncaughtExceptionHandler(), // Current default uncaught exception handler.
context); // Context of the application.

myHandler.setExceptionParser(new MyExceptionParser());
// Where MyExceptionParser provides a custom description for various exceptions.

Public Method Summary

abstractString
getDescription(StringthreadName, Throwablet)
Return a short description of aThrowable suitable for reporting to Google Analytics.

Public Methods

public abstractStringgetDescription(StringthreadName,Throwablet)

Return a short description of aThrowable suitable for reporting to Google Analytics.

Parameters
threadName the name of theThreadthat got the exception, or null
t theThrowable
Returns
  • the description