ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Exception functions
  • Equivalence
  • HFSQL error
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Retrieves information about the last error that occurred in a function of a WINDEV, WINDEV Mobile or WEBDEV component.
Caution:
  • ErrorInfo must be used immediately after the call to the function that failed. Indeed, calling a WLanguage function may reinitialize and modify the status report of ErrorInfo.
  • ErrorInfo should not be used to check whether an error has been encountered. To check if a WLanguage function has encountered an error, use one of the following methods:
    • check the status report of the WLanguage function.
    • check the ErrorOccurred variable.
Example
// Open the overview file
nFileID is int = fOpen(FileName, foRead)
// Check the file opening
IF nFileID = -1 THEN
	Error("Unable to open file: " + FileName, ErrorInfo())
	RETURN False
END
Syntax

Getting information about the last error Hide the details

<Result> = ErrorInfo([<Type of information>])
<Result>: Character string or integer
  • Requested information.
  • Empty string ("") if no error occurred or if the requested information is not available.
<Type of information>: Optional constant
Information to return.
errCodeError code
AndroidAndroid Widget This constant is ignored.
errDateTimeDate and time of error
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst This constant is ignored.
errDebugInfoSpecific information for debugging the problem that occurred. This information should only be displayed and communicated on express demand from PC SOFT.

iPhone/iPadIOS WidgetMac Catalyst This constant is ignored.
errDuringName of the WLanguage function that threw the error.
errElementName of object associated with the current process when the error occurred.
AndroidAndroid Widget This constant is ignored.
errFICFull name of the data file (.FIC) associated with the error.
AndroidAndroid Widget This constant is ignored.
errFileLogical name of the file associated with the error.
AndroidAndroid Widget This constant is ignored.
errFullComponentNameFull name of the component being executed.
For example:
  • "" (empty string): main context of the application.
  • "Component1": "Component1" component used directly in the project.
  • "Component1.Component2": "Component2" component used from "Component1".
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst This constant is ignored.
errFullDetailsFull error details (error line, current process, etc.).
Remark: Returns the same information as when you click on the "Copy" button in the WLanguage error window.
errInfoAdditional information.
AndroidAndroid Widget This constant is ignored.
errItemName of the item associated with the error.
AndroidAndroid Widget This constant is ignored.
errLineNumber of the error line.
AndroidAndroid Widget This constant is ignored.
errLinkName of the link associated with the error.
AndroidAndroid Widget This constant is ignored.
errMessage
(default value)
Full error message.
errMMOFull name of the memo file (.MMO) associated with the error.
AndroidAndroid Widget This constant is ignored.
errNDXFull name of the index file (.NDX) associated with the error.
AndroidAndroid Widget This constant is ignored.
errNumberSubErrorNumber of sub-errors for the error
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst This constant is ignored.
errProcessName of process in progress when the error occurred.
AndroidAndroid Widget This constant is ignored.
errRecNumNumber of the record associated with the error.
AndroidAndroid Widget This constant is ignored.
errStackStack of WLanguage calls
iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is ignored.
errSummarySummary of error
errSystemCodeNumber of the system error (if it exists)
AndroidAndroid Widget This constant is ignored.
errSystemMessageMessage of system error (if it exists).
errWDDFull name of the WDD file associated with the error.
AndroidAndroid Widget This constant is ignored.
Remarks

Equivalence

Calling Error without any parameters displays the error message corresponding to the last WLanguage function that triggered an error.
In this case, the following code:
Error()
is equivalent to:
Error(ErrorInfo())

HFSQL error

When an HFSQL error occurs, ErrorInfo is equivalent to HErrorInfo.
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/15/2024

Send a report | Local help