PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
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
Reports and Queries
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)
errFullDetailsFull error details (error line, current process, etc.)
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
errNumberSubErrorNumber of sub-errors for the error
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".
errRecNumNumber of the record associated with the error
errDuringName of the WLanguage function that threw the error
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
Versions 18 and later
errDotNetException
New in version 18
errDotNetException
errDotNetException
.NET Exception object
Reports and Queries

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, etc.)
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 the WLanguage function that threw the error
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.
Component : wd240vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment