Skip to main content
Version: Next

Last errors

Last errors -> Function result

ParameterTypeDescription
Function resultCollection🡐Collection of error objects

Description

The Last errors command returns the current stack of errors of the 4D application as a collection of error objects, or null if no error occurred. The stack of errors includes objects sent by the throw command, if any.

Each error object contains the following attributes:

PropertyTypeDescription
errCodenumberError code
messagetextDescription of the error
componentSignaturetextSignature of the internal component which returned the error

This command must be called from an on error call method installed by the ON ERR CALL command.

Note: See also the GET LAST ERROR STACK legacy command that returns the same information as arrays.

See also

GET LAST ERROR STACK
ON ERR CALL
throw