4D v16.3

GET LAST ERROR STACK

Home

 
4D v16.3
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.



See also 

ON ERR CALL
SQL GET LAST ERROR

 
PROPERTIES 

Product: 4D
Theme: Interruptions
Number: 1015

This command can be run in preemptive processes

 
HISTORY 

Modified: 4D v11 SQL Release 3

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)