sysVar.errorCode

The system variable sysVar.errorCode receives a status code after any of the following events:

You can use sysVar.errorCode in these ways:

sysVar.errorCode is set to 0 if the call, I/O, or system function invocation is successful.

The characteristics of sysVar.errorCode are as follows:

Primitive type

CHAR

Data length

8

Is value always restored after a converse?

Yes

For an overview that includes details on sysVar.errorCode, see Exception handling. The list of possible sysVar.errorCode values is provided in EGL Java run-time error codes.

Example

  if (sysVar.errorCode = "00000008")
      exit program;
  end

Related reference
EGL Java run-time error codes
Exception handling
Exception handling and status (system words)
System words in alphabetical order
sysVar.handleSysLibErrors
try