FMX.Forms.TApplication.HandleException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure HandleException(Sender: TObject);

C++

void __fastcall HandleException(System::TObject* Sender);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TApplication

Description

Provides default handling of exceptions for the FireMonkey application.

If an exception passes through all the try blocks in the application code, the application automatically calls HandleException, which displays a dialog box indicating that an error occurred. Unless the exception object is EAbort, HandleException calls the OnException event handler, if one exists. Otherwise, it calls ShowException to display a message dialog box indicating that an error occurred.

To assign other exception-handling code for the application, use the OnException event handler.

See Also