Delphi What Does DelphiVCL.Application.HandleException Do?

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What Does DelphiVCL.Application.HandleException Do?
By Muhammad Azizul Hakim October 18, 2021

The HandleException method or DelphiVCL.Application.HandleException is used to provide default handling of exceptions for the 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 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 an error occurred.

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

What are the properties and methods of DelphiVCL.Application.HandleException?​

Let’s browse all the properties and methods of the DelphiVCL.Application.HandleException using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.HandleException)
See the responses in our Windows command prompt:
1634541664421.png
You can also read short information about the DelphiVCL.Application.HandleException using the print() command:
Python:
print(DelphiVCL.Application.HandleException)
print(DelphiVCL.Application.HandleException.__doc__)
See the responses in our Windows command prompt:
1634541693956.png