Skip to main content
Version: 1.0.0

abort

abort*

ParameterTypeDescription
Does not require any parameters

Description

The abort command stops the execution of the error-handling method and returns. This command must be used from within an error-handling project method installed using onErrCall.

When you use an error-handling project method to catch errors, Qodly neither displays its standard error dialog box nor interrupts the execution of your code. Instead, Qodly calls your error-handling method (that you can see as an exception handler), and resumes the execution to the next line of code in the method that triggered the error.

There are errors you can treat programmatically; for example, during an import operation, if you catch a database engine duplicated value error, you can “cover” the error and pursue the import. However, there are errors that you cannot process and errors that you should not “cover.” In these cases, you need to stop the execution by calling abort from within the error-handling project method.

See also

onErrCall