TsgcICEClient › Events › OnICEException
Fires when an unhandled internal exception is raised while processing ICE candidates or connectivity checks.
property OnICEException: TsgcICEExceptionEvent;
// TsgcICEExceptionEvent = procedure(Sender: TObject; E: Exception) of object
—
Fires when the ICE agent catches an unexpected exception while gathering candidates, scheduling connectivity checks, parsing STUN frames or delivering user events. Use it as a last-chance safety net for logging and telemetry; it does not replace per-check diagnostics (OnICECandidateError, OnICECandidatePairFailed), which cover protocol-level failures. The exception instance E is owned by the framework and must not be freed inside the handler.
procedure TForm1.oICEICEException(Sender: TObject; E: Exception);
begin
DoLog('ICE exception: ' + E.ClassName + ' - ' + E.Message);
end;