4D v13.4

GET LAST ERROR STACK

Home

 
4D v13.4
GET LAST ERROR STACK

GET LAST ERROR STACK 


 

GET LAST ERROR STACK ( codesArray ; intCompArray ; textArray ) 
Parameter Type   Description
codesArray  Longint array in Error numbers
intCompArray  String array in Internal component codes
textArray  String array in 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:

  • codesArray: This array receives the list of error codes generated.
  • intCompArray: This array contains the codes of the internal components associated with each error.
  • textArray: This array contains the text of each error.

The list of error codes and their text is provided in the sections of the Error Codes theme.

 
PROPERTIES 

Product: 4D
Theme: Interruptions
Number: 1015

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D v11 SQL Release 3

 
SEE ALSO 

ON ERR CALL
SQL GET LAST ERROR