PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Retrieves information about the current exception.
This function can only be used in an exception process.
Caution: The values of ExceptionInfo are valid during the entire process code of exception.
Versions 15 and later
Android This function is now available for the Android applications.
PHP This function is now available for the PHP sites.
New in version 15
Android This function is now available for the Android applications.
PHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
PHP This function is now available for the PHP sites.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code.
New in version 19
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code This function is now available in Browser code.
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.
Example
// Initialization code of project
EXTERN "Except.WL"
// Load the constants for managing exceptions
PROCÉDURE Value(sControlName)
WHEN EXCEPTION IN
RESULT(sControlName)
DO
IF ExceptionInfo(errCode) = UnknownExID THEN RESULT ""
END
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)
WHEN EXCEPTION IN
...
DO
// Full message of the main error
Trace(ExceptionInfo())
// Browse the sub-errors (if any)
FOR i = 1 TO ErrorInfo(errNumberSubError)
// Full message of each sub-error
Trace("Sub-error " + i + ": " + ExceptionInfo(errMessage, i))
END
END
Syntax

Finding out information about the last exception Hide the details

<Result> = ExceptionInfo([<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
errSystemCodeNumber of the system error (if it exists)
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errFullDetailsFull error details (error line, current process, ...)
Note: Returns the same information as the one retrieved when clicking the "Copy" button in the error window of WLanguage.
errDateTimeDate and time of error
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchJava This constant is not available.
errElementName of object associated with the current process when the error occurred
WEBDEV - Browser codeAndroidAndroid Widget Java Java class associated with the error.
errFICFull name of data file (FIC) associated with the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errFileLogical name of file associated with the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errInfoAdditional information
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errLinkName of link associated with the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errLineNumber of the error line
errMessage
(by default)
Full error message
errSystemMessageMessage of system error (if it exists)
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errMMOFull name of memo file (.MMO) associated with the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errNDXFull name of index file (.NDX) associated with the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errNumberSubErrorNumber of sub-errors for the error
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchJava This constant is not available.
errFullComponentNameFull name of component currently run.
Some examples:
  • "" (empty string): main application context
  • "Component1": "Component1" component directly used in the project
  • "Component1.Component2": "Component2" component used from "Component1".
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is ignored.
errRecNumNumber of the record associated with the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errDuringName of WLanguage function that triggered the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errStackStack of WLanguage calls
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchJava This constant is not available.
errSummarySummary of error
errItemName of item associated with the error
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errProcessName of process in progress when the error occurred
WEBDEV - Browser codeAndroidAndroid Widget Java This constant is not available.
errWDDFull name of WDD associated with the error
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchJava This constant is not available.
Versions 18 and later
errDotNetException
New in version 18
errDotNetException
errDotNetException
.NET Exception object
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadApple WatchJava This constant is not available.
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)

Finding out information about the sub-errors of last exception Hide the details

<Result> = ExceptionInfo([<Type of Information>,] <Sub-error Subscript>)
<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
errSystemCodeNumber of the system error (if it exists)
errFullDetailsFull error details (error line, current process, ...)
Note: Returns the same information as the one retrieved when clicking the "Copy" button in the error window of WLanguage.
errDateTimeDate and time of error
errElementName of object associated with the current process when the error occurred
errFICFull name of data file (FIC) associated with the error
errFileLogical name of file associated with the error
errInfoAdditional information
errLinkName of link associated with the error
errLineNumber of the error line
errMessage
(by default)
Full error message
errSystemMessageMessage of system error (if it exists)
errMMOFull name of memo file (.MMO) associated with the error
errNDXFull name of index file (.NDX) associated with the error
errRecNumNumber of the record associated with the error
errDuringName of WLanguage function that triggered the error
Windows Mobile This constant is not available.
errStackStack of WLanguage calls
errSummarySummary of error
errItemName of item associated with the error
errProcessName of process in progress when the error occurred
errWDDFull name of WDD associated with the error
<Sub-error Subscript>: Integer
Subscript of sub-error to use.
Reminder: The number of sub-errors for an exception is returned by the errNumberSubError constant.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment