4D v14.3GET LAST ERROR STACK |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
GET LAST ERROR STACK
|
GET LAST ERROR STACK ( codesArray ; intCompArray ; textArray ) | ||||||||
Parameter | Type | Description | ||||||
codesArray | Longint array |
![]() |
Error numbers | |||||
intCompArray | String array |
![]() |
Internal component codes | |||||
textArray | String array |
![]() |
Text of errors | |||||
The GET LAST ERROR STACK command returns information about the current stack of errors of the 4D application. When a 4D statement causes an error, the current error stack contains a description of the error as well as any series of errors generated. For example, a "disk full" type error causes a write error in the file then an error in the record saving command: the stack will therefore contain three errors. If the last 4D statement did not generate an error, the current error stack is empty.
This generic command can be used to process any type of error that may occur in the 4D application.
Note: However, to obtain detailed information concerning the errors generated by an ODBC source, it will be necessary to use the SQL GET LAST ERROR command.
This command must be called from an on error call method installed by the ON ERR CALL command.
The information is returned in three synchronized arrays:
The list of error codes and their text is provided in the sections of the Error Codes theme.
Product: 4D
Theme: Interruptions
Number:
1015
Modified: 4D v11 SQL Release 3
ON ERR CALL
SQL GET LAST ERROR
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)