PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • How to get information about the error processed?
  • Use example
  • Special case
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
ErrorPropagate (Function)
In French: ErreurPropage
Propagates a non-fatal error that can be processed by the calling code if the management of non-fatal errors is enabled for this code (in the code editor or by ErrorChangeParameter).
The error is processed by the higher level if:
  • an error process was enabled by the higher level.
  • the error is not managed by IF ... NOT or by the ErrorOccurred variable.
Versions 15 and later
PHP This function is now available for the PHP sites.
New in version 15
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Syntax
ErrorPropagate([<Message>])
<Message>: Optional character string
Additional message that can be added to the error.
Remarks

How to get information about the error processed?

ErrorInfo returns information about the error.

Use example

Purpose: Encapsulating fOpen in a procedure while implementing the error of fOpen (if it occurs):
PROCÉDURE OpenFile(LOCAL sFileName is string)

fOpen(sFileName)
IF ErrorOccurred = True THEN
ErrorPropagate()
RETURN // or RESULT
END
...
Then, you have the ability to call the OpenFile procedure:
...
OpenFile(sFileName)
IF ErrorOccurred = True THEN
// process the error
END
Note: An equivalent process can be performed with the mode for automatic management of errors.

Special case

The mechanism for processing the error, regardless whether it is managed automatically (window for error management) or by programming (ErrorChangeParameter), is not triggered if the WLanguage function or the user procedure is found in one of the following cases:
IF NOT <Function or procedure> THEN
// process the error
END
<Function or procedure>
IF ErrorOccurred = True THEN
// process the error
END
The mechanism considers that the error is processed by programming and the automatic process is not triggered.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Linux wd230vm.so
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment