SubscribeToErrorEvents
Subscribes or un-subscribe to error events by using the specified call back function.
Parameters:
callbackPtr
The function pointer to the call back function to be called when an error occurs.
The callback function must have the signature defined by errorCallbackFn.
subscribe:
Set to true if subscribing to the event and false is un-subscribing to the event.
Prototype Signature:
void SubscribeToErrorEvents(errorCallbackFn callbackPtr, bool subscribe);
It is the responsibility of the calling program to make sure that the callback pointer is valid when an error occurs, otherwise an exception will be thrown causing an error.
See also: errorCallbackFn