<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > ! AI - Error Handling > AI. - Error Handling |
MiniRobotLanguage (MRL)
AIC.Get Error
Read the Internal Error-Register for multiple AI-Services and put it into a Variable or on TOS
Intention
The AIC.Get Error command fetches the current error messages stored in the internal Error-Register.
This is useful for debugging and understanding the state of the AI - system.
This command is particularly useful for debugging and should be used to fetch error messages for analysis.
The current error messages will be stored in the specified variable if provided.
Unlike AIC.Clear Error, this command will not clear the Error-Register.
Yet executing another AI-Command may automatically clear the Error-Register anyway.
Syntax
AIC.Get Error[|P1]
AIC.Gte[|P1]
Parameter Explanation
P1: Optional. The variable where the current error messages will be stored. If omitted, the error messages are pushed onto the Top of Stack (TOS).
Example
'***********************************
' AIC.-Sample
'***********************************
AIC.Get Error|$$ERR
MBX.$$ERR
ENR.
Remarks
-
Limitations:
-
See also:
•