com.netmera.mobile
Class NetmeraExceptionReporter

java.lang.Object
  extended by com.netmera.mobile.NetmeraExceptionReporter

public final class NetmeraExceptionReporter
extends java.lang.Object

This class is used to send exception reports to Netmera. It automatically collects uncaught exception data for your information. If you want, you can also send your caught exception data to Netmera by using sendExceptionReport(Thread, Throwable) method to be able to track your app.


Method Summary
static NetmeraExceptionReporter getInstance()
          Returns an exception reporter object to be able to manually report errors.
 void sendExceptionReport(java.lang.Thread thread, java.lang.Throwable exception)
          Sends exception report to Netmera for Netmera Analytics service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NetmeraExceptionReporter getInstance()
Returns an exception reporter object to be able to manually report errors.

Returns:
Exception reporter instance to report errors manually.

sendExceptionReport

public void sendExceptionReport(java.lang.Thread thread,
                                java.lang.Throwable exception)
Sends exception report to Netmera for Netmera Analytics service. You can track handled exceptions sent by this method in Netmera Analytics pages.

Parameters:
thread - The thread where the exception occurred (i.e. Thread.currentThread())
exception - The exception