TsgcWSPServer_FilesEvents › OnException

OnException Event

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

Syntax

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

Default Value

Remarks

Called when the subprotocol catches an exception raised while servicing a connection or a QoS timer tick. The connection argument may be nil when the exception is not tied to a specific client.

Example

procedure TForm1.oFilesException(Connection: TsgcWSConnection; E: Exception);
begin
  Memo1.Lines.Add('exception: ' + E.Message);
end;

Back to Events