Developer Zone

Exception Tracking

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, 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 trackExceptionWithClassName method.

(TBCRESULT) trackExceptionWithClassName: (NSString*)className methodName: (NSString*)methodName exceptionMessage: (NSString*)message stackTrace: (NSString*)stackTrace

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


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

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

message (NSString*) - String containing the exception message.

stackTrace (NSString*) - String containing the stack trace.

Return Type:

Integer constant value with the following possible values:

* TBC_OK                 (  1)
* TBC_NOT_STARTED        ( -7)
* TBC_APP_STOPPED        (-14)