4D v14.3

Method called on error

Home

 
4D v14.3
Method called on error

Method called on error 


 

Method called on error -> Function result 
Parameter Type   Description
Function result  String in Name of method called on error

The Method called on error command returns the name of the method installed by the ON ERR CALL command for the current process.

If no such method has been installed, an empty string ("") is returned.

Example  

This command is particularly useful in the context of components because it enables you to temporarily change and then restore the error-catching methods:

 $methCurrent:=Method called on error
 ON ERR CALL("NewMethod")
  ` If the document cannot be opened, an error is generated
 $ref:=Open document("MyDocument")
  ` Reinstallation of previous method
 ON ERR CALL($methCurrent)

 
PROPERTIES 

Product: 4D
Theme: Interruptions
Number: 704

 
HISTORY 

Created: 4D v6.8.1

 
SEE ALSO 

ON ERR CALL

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)