Skip to main content
Version: 20 R7 BETA

Last errors

Last errors -> Function result

ParameterTypeDescription
Function resultCollectionCollection 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.

See also

ON ERR CALL
throw