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
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 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.
Example
// Project initialization code
EXTERN "Except.WL"
// Load the constants for managing exceptions
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.
errCodeError code
errDateTimeDate and time of error
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errDotNetException.NET Exception object
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errDuringName of the WLanguage function that threw the error
AndroidAndroid Widget This constant is not available.
errElementName of object associated with the current process when the error occurred
AndroidAndroid Widget Java class associated with the error.
errFICFull name of the data file (.FIC) associated with the error
AndroidAndroid Widget This constant is not available.
errFileLogical name of the file associated with the error
AndroidAndroid Widget This constant is not available.
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 This constant is ignored.
errFullDetailsFull 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.
errInfoAdditional information
AndroidAndroid Widget This constant is not available.
errItemName of the item associated with the error
AndroidAndroid Widget This constant is not available.
errLineNumber of the error line
errLinkName of the link associated with the error
AndroidAndroid Widget This constant is not available.
errMessage
(by default)
Full error message
errMMOFull name of the memo file (.MMO) associated with the error
AndroidAndroid Widget This constant is not available.
errNDXFull name of the index file (.NDX) associated with the error
AndroidAndroid Widget This constant is not available.
errNumberSubErrorNumber of sub-errors for the error
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errProcessName of process in progress when the error occurred
AndroidAndroid Widget This constant is not available.
errRecNumNumber of the record associated with the error
AndroidAndroid Widget This constant is not available.
errStackStack of WLanguage calls
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errSummarySummary of error
errSystemCodeNumber of the system error (if it exists)
AndroidAndroid Widget This constant is not available.
errSystemMessageMessage of system error (if it exists)
AndroidAndroid Widget This constant is not available.
errWDDFull name of the WDD file associated with the error
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
PROCEDURE evento_lista_objetos(ninstancia)
//variaiveis auxiliares
i is int = 1
objs_form is string = ""
sControlName is string = ""
sControles is string = ""

IF ninstancia = 0 THEN

RESULT ""

ELSE

NomeForm is string = m_Tabela[ninstancia].gs_nomeJanela

WHEN EXCEPTION IN

sControlName = EnumControl(NomeForm, i)

LOOP(5000)

// Process the control
Trace(sControlName)

// Next control
i++

sControlName = EnumControl(NomeForm, i)

IF sControlName <> "" AND sControlName <> Null AND sControlName <> 0 AND sControlName <> VK_EREOF
sControles += sControlName + "; "
ELSE
BREAK
END

END

RESULT sControles

DO
IF ExceptionInfo(errCode) THEN
RESULT sControles
END
END

END
Boller
02 Sep. 2023

Last update: 11/15/2024

Send a report | Local help