Home | Sign in | English UK
  • Overview
  • Displaying a custom message
  • Exception mechanism
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
The security mechanism of WLanguage is enabled when a programming error occurs in an application or in a site. An error message is displayed on the end-user computer and the execution of the program is ended.
WINDEV and WEBDEV propose several solutions to reduce the consequences of programming errors:
  • The display of a custom error message.
    WEBDEV - Server codeWEBDEV - Browser codeiPhone/iPadJava This option is not available.
  • The mechanism of exceptions. This allows you to customize the management of the error.
Caution: These solutions can only be used to manage the programming errors. These solutions cannot be used to manage the runtime errors (such as "unable to write into a read-only file"). To manage the runtime errors, see Automatic management of errors.
Versions 19 and later
WEBDEV - Browser code The mechanism of exceptions is now available in Browser code.
New in version 19
WEBDEV - Browser code The mechanism of exceptions is now available in Browser code.
WEBDEV - Browser code The mechanism of exceptions is now available in Browser code.
Displaying a custom message
WINDEVWindowsWindows Mobile To display a custom message when a programming error occurs, all you have to do is enter the text of the error when creating the executable.
This enables you to display (without programming) a message such as:
"Problem in the XXX application: Write down the error message and contact our technical support at xx.xx.xx.xx.xx".
Exception mechanism
The exception mechanism is used to process the error cases by programming. If an exception process is triggered, no error message is displayed and the code of the exception is run. This code allows you to perform all the necessary operations:
  • to exit from the current application "properly" if the error is a fatal error,
  • to give control back to the user if the error can be corrected.
WINDEV, WEBDEV and WINDEV Mobile propose several types of exception processes:
Related Examples:
Dynamic compilation Unit examples (WINDEV): Dynamic compilation
[ + ] Dynamic compilation of WLanguage code (stored in string format), execution of the dynamically generated procedure and process of possible runtime errors.
The dynamic compilation is very useful when mathematical calculations are proposed to the end user for example.
Minimum version required
  • Version 10
This page is also available for…
Click [Add] to post a comment