|
|
|
|
|
ExceptionInfo (Function) In french: ExceptionInfo Retrieves information about the current exception. This function can only be used in an exception process. Warning The values of the ExceptionInfo are valid throughout the exception handling code.
PROCEDURE Value(sControlName)
WHEN EXCEPTION IN
RESULT(sControlName)
DO
IF ExceptionInfo(errCode) = UnknownExID THEN RETURN ""
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. | | errCode | Error code | errDateTime | Date and time of error
| errDotNetException | .NET Exception object
| errDuring | Name of the WLanguage function that threw the error
| errElement | Name of object associated with the current process when the error occurred
| errFIC | Full name of the data file (.FIC) associated with the error
| errFile | Logical name of the file associated with the error
| errFullComponentName | Full 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".
| errFullDetails | Full error details (error line, current process, etc.) Note: Returns the same information as that retrieved by clicking on the "Copy" button in the WLanguage error window. | errInfo | Additional information
| errItem | Name of the item associated with the error
| errLine | Number of the error line | errLink | Name of the link associated with the error
| errMessage (by default) | Full error message | errMMO | Full name of the memo file (.MMO) associated with the error
| errNDX | Full name of the index file (.NDX) associated with the error
| errNumberSubError | Number of sub-errors for the error
| errProcess | Name of process in progress when the error occurred
| errRecNum | Number of the record associated with the error
| errStack | Stack of WLanguage calls
| errSummary | Summary of error | errSystemCode | Number of the system error (if it exists)
| errSystemMessage | Message of system error (if it exists)
| errWDD | Full name of the WDD file associated with the error
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|