System.Classes.TThread.FatalException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property FatalException: TObject read FFatalException;

C++

__property System::TObject* FatalException = {read=FFatalException};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

FatalException indicates that the execution of the thread was terminated because of an uncaught Exception.

If the Execute method raises an exception that is not caught and handled within that method, the thread terminates and sets FatalException to the exception object for that exception. Applications can check FatalException from an OnTerminate event handler to determine whether the thread terminated due to an exception.

See Also