
Chapter 5 Script Commands
Scripting Guide 98
ERRORNUM
Syntax:
ERRORNUM() ==> %ErrNum
Description:
Returns the error number for the most recent command.
Action:
The error number from the most recently executed command is
retrieved.
Parameters:
N/A
Returns:
Numeric value. The error code from the most recent command, as
listed in Possible Error Codes below.
Notes:
1. The next successful command clears all error codes.
2. See ERRORMSG for information on receiving error message text.
3. The scope of the error number is per script thread. This means the
last error number set in a child script (a called script) is accessible
when returning to the parent script (the calling script).
Example:
%ErrNum := ERRORNUM()
IF %ErrNum == Err_Alert_Mod
LOG( LOG_FLT, “Modify alert failed”, STATUS_ERROR)
ENDIF
See Also:
ERRORMSG
Possible Error Codes
Manifest Constant Value Associated String/Reason
Err_None 0 No Error
Err_BadArgs 1 Bad arguments to function
Err_Exec_NotFound 7 Script execution failed:
Script not found
Err_Obj_InvalidId 1000 Invalid Object ID
Err_Alert_Create 2001 ALERTCREATE failed
Err_Alert_Del 2003 ALERTDEL failed
Err_Alert_Mod 2002 ALERTMOD failed
Err_Snmp_TrapSend 3003 TrapSend failed
Err_Snmp_Get 3004 SNMP Get failed
Err_Snmp_GetNext 3005 SNMP Get Next failed
Err_Snmp_Set 3006 SNMP Set failed.
Err_Snmp_GetTable 3007 SNMP GetTable failed.
Err_Mvs_Daemon_NoComm 4000 Unable to connect to gwMvsD,
the MCC daemon that
communicates with GW-MVS.
Contact Visara Technical
Comentários a estes Manuais