[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TCustomForm.HandleCreateException

Indicates if an exception in the OnCreate event handler is handled by the application.

Declaration

Source position: forms.pp line 653

protected function TCustomForm.HandleCreateException: Boolean; virtual;

Function result

True when the exception is handled by the application.

Description

HandleCreateException is a Boolean function which indicates if an exception raised in the OnCreate event handler is handled in the form instance. The return value is True when the Application.CaptureExceptions property is set to True; the HandleException method in Application is called to notify its exception handlers of the exception. When the return value is False, the exception is re-raised in the caller.

HandleCreateException is called from the DoCreate method.

See also

TApplication.HandleException

  

HandleException method for handling an exception; attempts to maintain program execution if possible, otherwise exits gracefully.

TApplication.CaptureExceptions

  

Enables exception handling in the Application.


Version 3.2 Generated 2024-02-25 Home