System.Classes.TThread.FatalException
Delphi
property FatalException: TObject read FFatalException;
C++
__property System::TObject* FatalException = {read=FFatalException};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
property | public | System.Classes.pas System.Classes.hpp |
System.Classes | TThread |
Description
FatalException indique que l'exécution du thread s'est terminée suite à une Exception non capturée.
Si la méthode Execute provoque une exception qui n'est pas capturée ni gérée à l'intérieur de cette méthode, le thread se termine et définit FatalException par l'objet exception de cette exception. Les applications peuvent tester FatalException depuis un gestionnaire d'événement OnTerminate pour déterminer si l'achèvement du thread est dû à une exception.