AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de excepciones
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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.
Ejemplo
// 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
Sintaxis

Finding out information about the last exception Ocultar los detalles

<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
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errDotNetException.NET Exception object
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errDuringName of the WLanguage function that threw the error
AndroidWidget Android This constant is not available.
errElementName of object associated with the current process when the error occurred
AndroidWidget Android Java class associated with the error.
errFICFull name of the data file (.FIC) associated with the error
AndroidWidget Android This constant is not available.
errFileLogical name of the file associated with the error
AndroidWidget Android This constant is not available.
errFullComponentNameFull name of the component being executed.
For example:
  • "" (empty string): main context of the application
  • "Component1": Component "Component1" used directly in the project
  • "Component1.Component2": "Component2" component used from "Component1".
AndroidWidget Android 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
AndroidWidget Android This constant is not available.
errItemName of the item associated with the error
AndroidWidget Android This constant is not available.
errLineNumber of the error line
errLinkName of the link associated with the error
AndroidWidget Android This constant is not available.
errMessage
(by default)
Full error message
errMMOFull name of the memo file (.MMO) associated with the error
AndroidWidget Android This constant is not available.
errNDXFull name of the index file (.NDX) associated with the error
AndroidWidget Android This constant is not available.
errNumberSubErrorNumber of sub-errors for the error
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errProcessName of process in progress when the error occurred
AndroidWidget Android This constant is not available.
errRecNumNumber of the record associated with the error
AndroidWidget Android This constant is not available.
errStackStack of WLanguage calls
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
errSummarySummary of error
errSystemCodeNumber of the system error (if it exists)
AndroidWidget Android This constant is not available.
errSystemMessageMessage of system error (if it exists)
AndroidWidget Android This constant is not available.
errWDDFull name of the WDD file associated with the error
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst This constant is not available.
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
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 09 2023

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local