GET LAST ERROR STACK

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.3 (Modified)


GET LAST ERROR STACK (codesArray; intCompArray; textArray)

ParameterTypeDescription
codesArrayNumber arrayError numbers
intCompArrayString arrayInternal component codes
textArrayString arrayText of errors

Description

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.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next