DelphiVCL.Abort function is used to raise a silent exception.
We use Abort to escape from an execution path without reporting an error.
Abort raises a special “silent exception” (EAbort), which operates like any other exception, but does not display an error message to the end user. Abort redirects execution to the end of the last exception block.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Abort using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Abort) |
See the responses in our Windows command prompt:
Table of Contents
EAbort
EAbort is the exception class for errors that should not display an error message dialog box.
Use EAbort to raise an exception without displaying an error message in a dialog box. If applications do not trap such “silent” exceptions, the EAbort exception is passed to the HandleException method of the Application object.
The Abort procedure provides a simple, standard way to raise EAbort.
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.