property OnProtocolError : TProtocolErrorEvent
TProtocolErrorEvent = procedure(
CP : TObject; ErrorCode : SmallInt) of object;
Defines an event handler that is called when an unrecoverable protocol error occurs.
This event is generated only for unrecoverable errors. Most protocol errors caused by line noise are handled automatically by the protocol and are not reported to this event handler.
CP is the protocol component that generated the error. ErrorCode is a number indicating the type of error.
Note that the OnProtocolFinish event is generated soon after the OnProtocolError event and passes the same error code. OnProtocolFinish is generated for both successful and failed transfers, so you may want to use it instead of an OnProtocolError handler.
See "Error handling" in the printed documentation for more information.
See also: BlockErrors, OnProtocolFinish