Product Site

8.26. SysGetErrorText

Obtains a string describing the system error identified by the error number.

Returns a string with the description of the error, or an empty string if no description is available.

Parameter:
errornumber

The error number for which a description is to be retrieved. Note that both the error number and the descriptive text are operating-system specific.

Example 8.17. RexxUtil — SysGetErrorText
-- Windows: Cannot create a file when that file already exists.
say SysGetErrorText(SysMkDir("\Users"))

-- Unix-like system: File exists
say SysGetErrorText(SysMkDir("/usr"))