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
  • Equivalence
  • HFSQL error
  • DDE errors
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 last error that occurred in a function of a WINDEV, WINDEV Mobile or WEBDEV component.
Caution:
  • ErrorInfo must be used immediately after the call to the function that failed. Indeed, calling a WLanguage function may reinitialize and modify the status report of ErrorInfo.
  • ErrorInfo should not be used to check whether an error has been encountered. To check if a WLanguage function has encountered an error, use one of the following methods:
    • check the status report of the WLanguage function.
    • check the ErrorOccurred variable.
Ejemplo
// Open the overview file
nFileID is int = fOpen(FileName, foRead)
// Check the file opening
IF nFileID = -1 THEN
	Error("Unable to open file: " + FileName, ErrorInfo())
	RETURN False
END
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)Ajax
// Error found?
IF ErrorOccurred = True THEN
	// Full message of the main error
	Trace(ErrorInfo())
	// Browse the sub-errors (if any)
	FOR i = 1 _TO_ ErrorInfo(errNumberSubError)
		// Full message of each sub-error
		Trace("Sub-error " + i + ": " + ErrorInfo(errMessage, i))
	END
END
Sintaxis

Getting information about the last error Ocultar los detalles

<Result> = ErrorInfo([<Type of information>])
<Result>: Character string or integer
  • Requested information.
  • Empty string ("") if no error occurred or if the requested information is not available.
PHP Full error details.
<Type of information>: Optional constant
Information to return.
errCodeError code
AndroidWidget Android JavaPHP This constant is ignored.
errDateTimeDate and time of error
AndroidWidget Android iPhone/iPadIOS WidgetMac CatalystJavaPHP This constant is ignored.
errDebugInfoSpecific information for debugging the problem that occurred. This information should only be displayed and communicated on express demand from PC SOFT.
OLE DB When running a query via OLE DB, this option allows you to retrieve the code of the SQL query currently run on the database.

iPhone/iPadIOS WidgetMac CatalystPHP This constant is ignored.
errDuringName of the WLanguage function that threw the error.
PHP This constant is ignored. An empty string is returned.
errElementName of object associated with the current process when the error occurred.
AndroidWidget Android JavaPHP This constant is ignored.
errFICFull name of the data file (.FIC) associated with the error.
AndroidWidget Android JavaPHP This constant is ignored.
errFileLogical name of the file associated with the error.
AndroidWidget Android JavaPHP This constant is ignored.
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".
AndroidWidget Android iPhone/iPadIOS WidgetMac CatalystJavaPHP This constant is ignored.
errFullDetailsFull error details (error line, current process, etc.).
Remark: Returns the same information as when you click on the "Copy" button in the WLanguage error window.
errInfoAdditional information.
AndroidWidget Android JavaPHP This constant is ignored.
errItemName of the item associated with the error.
AndroidWidget Android JavaPHP This constant is ignored.
errLineNumber of the error line.
AndroidWidget Android JavaPHP This constant is ignored.
errLinkName of the link associated with the error.
AndroidWidget Android JavaPHP This constant is ignored.
errMessage
(default value)
Full error message.
errMMOFull name of the memo file (.MMO) associated with the error.
AndroidWidget Android JavaPHP This constant is ignored.
errNDXFull name of the index file (.NDX) associated with the error.
AndroidWidget Android JavaPHP This constant is ignored.
errNumberSubErrorNumber of sub-errors for the error
AndroidWidget Android iPhone/iPadIOS WidgetMac CatalystJavaPHP This constant is ignored.
errProcessName of process in progress when the error occurred.
AndroidWidget Android JavaPHP This constant is ignored.
errRecNumNumber of the record associated with the error.
AndroidWidget Android Java This constant is ignored.
errStackStack of WLanguage calls
iPhone/iPadIOS WidgetApple WatchMac CatalystPHP This constant is ignored.
errSummarySummary of error
PHP This constant is ignored.
errSystemCodeNumber of the system error (if it exists)
AndroidWidget Android JavaPHP This constant is ignored.
errSystemMessageMessage of system error (if it exists).
errWDDFull name of the WDD file associated with the error.
AndroidWidget Android JavaPHP This constant is ignored.
WINDEVWEBDEV - Código ServidorReportes y ConsultasCódigo de Usuario (UMC)Ajax

Getting information about the sub-errors of the last error Ocultar los detalles

<Result> = ErrorInfo(<Type of information> , <Sub-error subscript>)
<Result>: Character string or integer
  • Requested information.
  • Empty string ("") if no sub-error occurred or if the requested information is not available.
<Type of information>: Constant
Information to return.
errCodeCode of the sub-error.
errDateTimeDate and time of sub-error.
errDebugInfoSpecific information for debugging the problem that occurred. This information should only be displayed and communicated on express demand from PC SOFT.

OLE DB When running a query via OLE DB, this option allows you to retrieve the code of the SQL query currently run on the database.
errDuringName of WLanguage function that threw the sub-error.
errElementName of object associated with the process in progress when the sub-error occurred.
errFICFull name of data file (.FIC) associated with the sub-error.
errFileLogical name of file associated with the sub-error.
errFullDetailsFull details of sub-error (sub-error line, current process, etc.).

Remark: Returns the same information as when you click on the "Copy" button in the WLanguage error window.
errInfoAdditional information.
errItemName of item associated with the sub-error.
errLineNumber of the sub-error line.
errLinkName of link associated with the sub-error.
errMessage
(default value)
Full message of sub-error.
errMMOFull name of memo file (.MMO) associated with the sub-error.
errNDXFull name of index file (.NDX) associated with the sub-error.
errProcessName of process in progress when the sub-error occurred.
errRecNumNumber of record associated with the sub-error.
errStackStack of WLanguage calls.
errSummarySummary of sub-error.
errSystemCodeNumber of the system sub-error (if it exists).
errSystemMessageMessage of system error (if it exists).
errWDDFull name of WDD associated with the sub-error.
<Sub-error subscript>: Integer
Index of sub-error to use.
Reminder: The number of sub-errors in an error can be known using the constant errNumberSubError.
Observaciones

Equivalence

Calling Error without any parameters displays the error message corresponding to the last WLanguage function that triggered an error.
In this case, the following code:
Error()
is equivalent to:
Error(ErrorInfo())

HFSQL error

When an HFSQL error occurs, ErrorInfo is equivalent to HErrorInfo.
WINDEVWEBDEV - Código ServidorReportes y ConsultasAjax

DDE errors

To get the main DDE error codes, see DDE error codes.
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 15/11/2024

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