Developer Zone

Exception Tracking

Revulytics Usage Intelligence is able to collect runtime exceptions from your application and then produce reports on the exceptions that were collected. Once an exception is tracked, Revulytics Usage Intelligence will also save a snapshot of the current machine architecture so that you can later (through the on-line exception browser within the customer area) investigate the exception details and pinpoint any specific OS or architecture related specifications that are the cause of common exceptions. Collection of exception data is done through the TBClass.ExceptionTrack method.

GenericReturn TBClass.ExceptionTrack (String className, String methodName, Exception ex)

This method is used to track and report on any exceptions that are generated by your application on the end users’ machines.

Parameters:

className (string) - The name of the class where the exception occurred.

methodName (string) - The name of the method/function where the exception occurred.

ex (Exception) - The Exception object that is being reported.

Return Type:

GenericReturn enum value with the following possible values:

* OK (1)
* FunctionNotAvailable (-1)
* ConfigNotLoaded (-7)
* InvalidParameter (-9)
* InternalError (-99)

Code Example:

Placing TBClass.ExceptionTrack inside of a try catch statement so that Revulytics Usage Intelligence can record it

// Create instance
TBClass tb = new TBClass("<path to Revulytics Usage Intelligence SDK .NET library>");
// Other initialization.....


private void btnSave_Click(object sender, EventArgs e)
{
    try
    {
        //Save Button Logic
    }
    catch (Exception ex)
    {
        tb.ExceptionTrack("Form1", "btnSave_Click", ex);
    }
}