ThbTapiApplication.OnError
Unit: hbTapi
 

The OnError event is used to notify the application for errors occurring in backround processing and during applications event handling. Such errors may happen, if the application causes an exception within an event handling procedure or if a TAPI error is catched during updating of TAPI data structures. If the exce ption was catched by a ThbTapiLine or ThbTapiPhone instance, the ThbTapiLine.OnError resp. ThbTapiPhone.OnError event is triggered following.

Avalabiltity

Design-Time: Read, Write / Run-Time: Read, Write

 

Declaration

TErrorEvent = procedure (Sender: TObject; Error: Exception; Causer: TObject) of Object;
propety OnError: TErrorEvent;

Parameters

Sender
An instance of ThbTapiLine, ThbTapiPhone or hbTapiApplication itself as the sender.
Causer
If the error has been caused by a sublimentary object like a call, this object is presented as the causer. In general, this parameter is nil and can be ignored.
Error
The exception that has been catched. You could write the exception's message property to a log file or display it otherwise.

See Also

ThbTapiLine.OnError, ThbTapiPhone.OnError