|
|
|
|
|
|
|
|
|
|
- Overview
- Automatic management of errors
- Implementing the automatic management of errors
- Running the error process ("CASE ERROR" in the code)
- Running a procedure for processing the error:
- Displaying the error and exiting from the application:
- Display error and resume input in the current window
- Displaying the error and giving the decision to the user:
- Returning the XXX value and displaying the error
- Customizing the windows for automatic management of errors
- Functions for automatic management of errors
Automatic management of errors
The management of errors can be customized by process. No more "IF ... NOT", "IF ErrorOccurred ..." and other nested tests that made the code difficult to understand. You can choose to use automated error processing or advanced management via the different WLanguage functions. Important: The automatic management of errors and exceptions operates for the process for which it was defined. Automatic management of errors Customizing the windows for automatic management of errors Functions for automatic management of errors The functions for automatic management of errors are as follows:
| | | ErrorChangeParameter | Configures the automatic behavior that will be implemented if an error occurs in the current process. | | ErrorInfo | Retrieves information about the last error that occurred in a function of a WINDEV, WINDEV Mobile or WEBDEV component. | | ErrorPropagate | Propagates a non-fatal error that can be processed by the calling code if the management of non-fatal errors was enabled for this code (in the code editor or by ErrorChangeParameter). | | ErrorRestoreParameter | Restores the error process of a process. | | ErrorThrow | Throw a non-fatal error. |
Related Examples:
|
Training (WINDEV): WD Auto Error Management
[ + ] The "WD Automatic Management of Errors" example is an educational example about the automatic management of errors. This example presents the fatal and non-fatal errors on several levels.
|
|
Training (WINDEV): WD Managing the Java errors
[ + ] WINDEV enables you to develop Java applications without even knowing Java. You benefit from the power and from the automated processes of the WINDEV environment. One of the most useful automated processes is the automatic management of errors. This example presents the operating mode and the implementation of the mechanism for managing the WINDEV errors. Some illustrations allow you to understand the simplification performed when implementing this feature. This project is configured to generate a Java archive.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|