Click or drag to resize
IAnalyticsMonitorTrackException Method (Exception)
Call to track an exception that occured in the application.

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.1.0 (3.2.1)
Syntax
void TrackException(
	Exception exception
)

Parameters

exception
Type: SystemException
the exception to be tracked
Examples
An example of tracking an exception
static class Program 
{   
  [STAThread]
  static void Main()
  {
    IAnalyticsMonitor monitor = AnalyticsMonitorFactory.CreateMonitor("YOUR-PRODUCT_KEY");
    monitor.Start();
    try 
    {
       // your application logic here
    }
    catch(Exception exc)
    {
      // catch-all handle 
      monitor.TrackException(exc);
    }
    finally
    {
      monitor.Stop();
    }
  } 
}
See Also