FMX.Forms.TApplication.ShowException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ShowException(E: Exception);

C++

void __fastcall ShowException(System::Sysutils::Exception* E);

Properties

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

Description

Displays a message box for exceptions that are not caught by the application code.

The HandleException method calls ShowException by default if no handler is specified for the OnException event. If an exception handler filters exceptions, ShowException is called for those exceptions that are not filtered out.

To specify how exceptions are handled for an application, write a handler for the OnException event.

Tip: Calling ShowException is rarely necessary in a component-based application, since the default exception handler calls ShowException automatically.

See Also