TsgcWSPClient_sgc › Olaylar › OnError
Sunucu veya aktarım bir hata dizesi raporladığında tetiklenir.
property OnError: TsgcWSErrorEvent;
// TsgcWSErrorEvent = procedure(Connection: TsgcWSConnection; const Error: string) of object
—
Error, hatanın insan tarafından okunabilir bir açıklamasıdır; örneğin geçersiz bir çerçeve, reddedilen bir kimlik doğrulaması veya bir protokol ihlali. Dil düzeyindeki istisnalar için OnException kullanın.
procedure TForm1.oProtocolError(Connection: TsgcWSConnection; const Error: string);
begin
Memo1.Lines.Add('error: ' + Error);
end;