TsgcWSPServer_E2EEEvents › OnException

OnException Event

Fired when an unhandled Delphi exception is raised while processing a connection.

Syntax

property OnException: TsgcExceptionEvent;
// TsgcExceptionEvent = procedure(Connection: TsgcWSConnection; E: Exception) of object

Default Value

Remarks

Use this event to log unexpected exceptions that escape internal handlers; E.Message contains the text and Connection identifies the client involved. Prefer OnError for protocol-defined error messages.

Example

procedure TfrmServerE2EE.WSPE2EEException(Connection: TsgcWSConnection; E: Exception);
begin
  MemoLog.Lines.Add('exception: ' + E.Message);
end;

Back to Events