This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
Last errors

Last errors 


 

Last errors -> Function result 
Parameter Type   Description
Function result  Collection in Collection of error objects

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

 
PROPERTIES 

Product: 4D
Theme: Interruptions
Number: 1799

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v19 R8

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)