Script Elements for Error Handling
The following script elements let you retrieve error details and texts.
-
:EXIT
Terminates the processing of a script with a return code -
GET_MSG_TXT
Retrieves the message text of the latest occurred error -
GET_MSG_TYPE
Retrieves the type of a message number -
:ON_ERROR
Determines the reaction to certain errors and messages of script elements -
:SEND_SNMP_TRAP
Sends an SNMP trap -
:SET_LAST_ERR
Sets error number and text -
:STOP
Terminates the activation of a script and can display error messages -
SYS_LAST_ERR_INS
Supplies the variable message part of the error that has last occurred -
SYS_LAST_ERR_NR
Returns the number of the error that has last occurred -
SYS_LAST_ERR_SYSTXT
Retrieves the last-occurred error message from the operating system
For information on sending messages or emails to users, see Script Elements for User Interaction and User Data.