Show: Delphi C++
Display Preferences

Vcl.Forms.TApplication.ShowException

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure ShowException(E: Exception);

C++

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

Contents

Properties

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

Description

Displays a message box for exceptions that are not caught by 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.

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

See Also

Code Examples


Personal tools
Previous Versions
Translations