Developer Zone

Exception Tracking¶

Trackerbird is able to collect runtime exceptions from your application and then produce reports on the exceptions that were collected. Once an exception is tracked, Trackerbird will also save a snapshot of the current machine architecture so that you can later (through the online exception browser within the customer area) investigate the exception details and pinpoint any specific OS or architecture related specs which are the cause of common exceptions. Collection of exception data is done through the exceptionTrack() function.

exceptionTrack(className, methodName, exceptionMessage, stackTrace):

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

Parameters:
  • className (str/unicode) – The name of the class from which the exception occurred.
  • methodName (str/unicode) – The name of the method/function from which the exception occurred.
  • exceptionMessage (str/unicode) – The message contained in the exception or any free text you might need to log after the exception occurs.
  • stackTrace (str/unicode) – The stack trace of the exception or part of the stack trace to be logged with the exception.
Return type:

One of the return status codes below.

* OK (1)
* FUNCTION_NOT_AVAIL (-1)
* CONFIG_NOT_LOADED (-7)
* INVALID_PARAMETER (-9)